Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ipv4 connectivity #262

Merged
merged 9 commits into from
Jan 31, 2025
Merged

Ipv4 connectivity #262

merged 9 commits into from
Jan 31, 2025

Conversation

stal76
Copy link
Collaborator

@stal76 stal76 commented Dec 15, 2024

The following functionality has been added to this PR:

  • a new tunnel type - IpIp;
  • the ability to communicate between local subnets with route tunnel;
  • the ability to set route tunnel routes in controlplane.conf;
  • the ability to use random source address in route tunnel.

- Numeric values have been replaced in the code with the use of this constant.
- It would be nice to add the ability to set AS in the configuration file, but
  this is also used in the cli.
In this commit, only the definition of a new tunnel type has been added, the
behavior is still the same as for MPLS over UDP. The implementation of the
new behavior is done in the next commit.
In controlplane.conf, it was possible to set static routes for route. Added
the ability to also set routes for route tunnel, to do this, set the route:
	"tunnel": true
One can also set the path_information and label parameters. If these parameters
are not set, the default values will be used.
- Added comments to some type fields.
- Formatting of long function definitions has been changed.
- Replaced std::tuple<std::string, uint32_t> with rib:: vrf_priority_t.
When route tunnel is enabled, tunneling will be used for all subnets. But this
does not need to be done for local subnets. To do this, the subnet must be set
in the localPrefixes section.
The old autotest for ipv4/ipv6 MPLS over UDP has also been simplified.
A similar feature was available in tun64 and balancer. The ipv6 src address
from 65 to 96 bits is written to the ipv4 src of the original packet.
common/define.h Show resolved Hide resolved
dataplane/worker.cpp Show resolved Hide resolved
controlplane/configparser.cpp Show resolved Hide resolved
controlplane/configparser.cpp Show resolved Hide resolved
@ol-imorozko
Copy link
Collaborator

overall LGTM

Copy link
Collaborator

@GeorgyKirichenko GeorgyKirichenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GeorgyKirichenko GeorgyKirichenko merged commit 3f1d4d4 into main Jan 31, 2025
9 checks passed
@GeorgyKirichenko GeorgyKirichenko deleted the ipv4_connectivity branch January 31, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants