-
Notifications
You must be signed in to change notification settings - Fork 1
Cisco NXOS vPC Domain #96
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
base: main
Are you sure you want to change the base?
Conversation
7a146d3 to
57755c4
Compare
0b789b3 to
52078ca
Compare
52078ca to
b960688
Compare
218ebd5 to
2f2cd99
Compare
f6fb13c to
b3fd3db
Compare
b3fd3db to
5fede6d
Compare
5fede6d to
833c5c3
Compare
e809adf to
a3d7d0c
Compare
Merging this branch changes the coverage (2 decrease, 1 increase)
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
6ca2278 to
9ed1ed3
Compare
9ed1ed3 to
2afcc9f
Compare
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
4893d5c to
6edce96
Compare
Multi-Chassis Link Aggregation (MC-LAG) is quite vendor and platform specific. We don't see much intersection in their respective configuration to justify a common API type. Instead, we move forward with a platform specific API exclusive to Cisco NXOS devices. This commit adds new types, controller, and provider to configure virtual Port Channels (vPCs) via the operator. Implementation note: Consider the following information about the YANG model for configuring a vPC: * each vPC configured in the domain appears in the tree in this location: `vpc-items/inst-items/dom-items/if-items/If-list[id=30]` (where `30` is the vPC ID) * the peer-link interface is configured here: `vpc-items/inst-items/dom-items/keepalive-items/peerlink-items[id=po10]` The interfaces will be added to the vPC config by the LAG provider and not by this controller. Hence, if we apply a gNMI Replace operation on the xpath returned by VPC.XPath() we would remove any existing vPC interfaces. A gNMI Update operation will not modify the configuration introduced by the LAG provider.
6edce96 to
509e272
Compare
Use `nx.cisco.networking.metal.ironcore.dev/channel-group-force` to tag an interface of type `Aggregate` on a Cisco NX device and force the addition of member interfaces to the port-channel. The value of the annotation is ignored.
509e272 to
cb86bf5
Compare
Multi-Chassis Link Aggregation (MC-LAG) is quite vendor and platform
specific. We don't see much intersection in their respective
configuration to justify a common API type. Instead, we move forward
with a platform specific API exclusive to Cisco NXOS devices.
In this PR we add types, controller, and provider code to configure
virtual Port Channels (vPCs) via the operator as:
The
vpcdomaincontroller ensures that thevpc peer-linkis configured.This is because on gNMI this property is configured at the vpcDom (sub-)containers.
Having this property as a provider-specific resource does not seem a good
option and the moment as it complicates the code base.
The operational status of the resource is
UPif the peer is alive and the remotedevice returns a positive uptime value for the peer.