MCLAG-Netconf
Resources Summary
Section titled “Resources Summary”| YANG Path | get/get-config | edit-config | rpc |
|---|---|---|---|
| /mclag-domains/{domainid} | Y | merge, replace, create, delete | — |
| /mclag-domains/{domainid}/members/{name} | Y | merge, replace, create, delete | — |
| /mclag-domains/{domainid}/unique-ip | Y | replace, create, delete | — |
| /mclag-global | Y | merge | — |
| /show-mclag-consistency-check-result | — | — | Y |
| /show-mclag-member | — | — | Y |
| /show-mclag-state | — | — | Y |
Examples
Section titled “Examples”Enable MC-LAG
Section titled “Enable MC-LAG”<config><top> <mclag-global> <enabled>true</enabled> </mclag-global></top></config>Create MC-LAG Domain
Section titled “Create MC-LAG Domain”<config><top> <mclag-domains> <mclag-domain operation="create"> <domainid>1</domainid> <peer-ip>10.1.1.2</peer-ip> <source-ip>10.1.1.1</source-ip> <peer-link>Ethernet1</peer-link> <keepalive-interval>1</keepalive-interval> <session-timeout>30</session-timeout> <consistency-check>graceful</consistency-check> <dad-source-ip>192.168.15.115</dad-source-ip> <dad-peer-ip>192.168.15.116</dad-peer-ip> <detection-delay>5</detection-delay> <member-recover-delay>60</member-recover-delay> <orphan-recover-delay>30</orphan-recover-delay> <members> <member> <name>PortChannel0135</name> <active-backup-mode>false</active-backup-mode> </member> </members> <vlans> <vlan> <vlanid>40</vlanid> <unique-ip>true</unique-ip> </vlan> </vlans> </mclag-domain> </mclag-domains></top></config>Modify MC-LAG Domain
Section titled “Modify MC-LAG Domain”<config><top> <mclag-domains> <mclag-domain operation="merge"> <domainid>1</domainid> <peer-ip>20.1.1.2</peer-ip> <source-ip>20.1.1.1</source-ip> <peer-link>Ethernet1</peer-link> <backup-channel>10</backup-channel> <keepalive-interval>3</keepalive-interval> <session-timeout>60</session-timeout> <consistency-check>default</consistency-check> <detection-delay>15</detection-delay> <member-recover-delay>10</member-recover-delay> <orphan-recover-delay>60</orphan-recover-delay> <members> <member> <name>PortChannel0136</name> <active-backup-mode>false</active-backup-mode> </member> </members> </mclag-domain> </mclag-domains></top></config>Get MC-LAG Domain
Section titled “Get MC-LAG Domain”<filter type="subtree"> <top> <mclag-domains/> </top></filter>Create MC-LAG Member for Domain
Section titled “Create MC-LAG Member for Domain”<config><top> <mclag-domains> <mclag-domain> <domainid>1</domainid> <members operation="create"> <member> <name>PortChannel0003</name> </member> </members> </mclag-domain> </mclag-domains></top></config>Delete Single MC-LAG Member for Domain
Section titled “Delete Single MC-LAG Member for Domain”<config><top> <mclag-domains> <mclag-domain> <domainid>1</domainid> <members> <member operation="delete"> <name>PortChannel0003</name> </member> </members> </mclag-domain> </mclag-domains></top></config>Delete All MC-LAG Member for Domain
Section titled “Delete All MC-LAG Member for Domain”<config><top> <mclag-domains> <mclag-domain> <domainid>1</domainid> <members operation="delete"> </members> </mclag-domain> </mclag-domains></top></config>Modify MC-LAG Member Attribute
Section titled “Modify MC-LAG Member Attribute”<config><top> <mclag-domains> <mclag-domain> <domainid>1</domainid> <members operation="merge"> <member> <name>PortChannel0135</name> <active-backup-mode>true</active-backup-mode> </member> </members> </mclag-domain> </mclag-domains></top></config>Create MC-LAG Vlan for Domain
Section titled “Create MC-LAG Vlan for Domain”<config><top> <mclag-domains> <mclag-domain> <domainid>1</domainid> <vlans operation="create"> <vlan> <vlanid>40</vlanid> </vlan> </vlans> </mclag-domain> </mclag-domains></top></config>Delete MC-LAG Vlan For Domain
Section titled “Delete MC-LAG Vlan For Domain”<config><top> <mclag-domains> <mclag-domain> <domainid>1</domainid> <vlans operation="delete"> </vlans> </mclag-domain> </mclag-domains></top></config>Show MC-LAG Consistency Check Result
Section titled “Show MC-LAG Consistency Check Result”<show-mclag-consistency-check-result/>Show MC-LAG Member
Section titled “Show MC-LAG Member”<show-mclag-member/>Show MC-LAG State
Section titled “Show MC-LAG State”<show-mclag-state/>Properties Descriptions
Section titled “Properties Descriptions”Mclag Domains
Section titled “Mclag Domains”Tree Diagram
module: asternos-mclag +--rw mclag-domains +--rw mclag-domain* [domainid] +--rw domainid uint16 +--rw peer-ip? inet:ip-address +--rw source-ip? inet:ip-address +--rw peer-link? union +--rw keepalive-interval? uint8 +--rw session-timeout? uint16 +--rw vrf? vrf:vrf-ref +--rw consistency-check? enumeration +--rw backup-channel? cmn:vlan-id +--rw dad-source-ip? inet:ip-address +--rw dad-peer-ip? inet:ip-address +--rw detection-delay? uint16 +--rw member-recover-delay? uint16 +--rw orphan-recover-delay? uint16 +--rw dad-vrf? vrf:vrf-ref +--rw commit? boolean +--rw members | +--rw member* [name] | +--rw name cmn:port-channel-name | +--rw active-backup-mode? boolean +--rw unique-ip +--rw vlanid? cmn:vlan-idTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| mclag-domains | M | Path-only node, has no configurable value. | |
| mclag-domain | M | Path-only node, has no configurable value. List of MCLAGs domain | |
| domainid | O | 1..4095 | MCLAG domain ID |
| peer-ip | O | inet:ip-address | Peer IP of the MC-LAG control link |
| source-ip | O | inet:ip-address | Local IP of the MC-LAG control link |
| peer-link | O | Ethernet name | The peer-link port name, which is used to connect to the remote MC-LAG |
| keepalive-interval | O | 1..60 | MC-LAG keepalive message sending interval in seconds. The Keepalive message interval value should be less than 1/3 of the session timeout time; the session timeout time should be a multiple of the Keepalive message interval Default 1 seconds Default value: 1 |
| session-timeout | O | 3..3600 | MC-LAG session timeout in seconds. Default 15 seconds Default value: 15 |
| vrf | O | vrf:vrf-ref | VRF name, MC-LAG keepalive session belongs to the VRF that specifies the VRF of the routing port to which the local-address belongs |
| consistency-check | O | ”default" "graceful" "idle” | MC-LAG consistency check action, the default action is the idle mode. default mode: if the consistency check fails, the master and standby devices admin down the failed member ports at the same time. graceful mode: if the consistency check fails, only the Standby role device admin down the failed member ports, and the active device stays up. idle mode, the consistency check only displays the relevant results and does not take any corresponding action. Default value: idle |
| backup-channel | O | cmn:vlan-id | MC-LAG ICCP alternate pathway vlanid |
| dad-source-ip | O | inet:ip-address | MC-LAG DAD link local IP |
| dad-peer-ip | O | inet:ip-address | MC-LAG DAD link peer IP |
| detection-delay | O | 0..512 | MC-LAG DAD detection delay in seconds. Default 15 seconds Default value: 15 |
| member-recover-delay | O | 0..1000 | MC-LAG standby side mlag port error-down state recovery delay time Default 60 seconds Default value: 60 |
| orphan-recover-delay | O | 0..1000 | MC-LAG standby side non-mlag port error-down state recovery delay time Default 0 seconds Default value: 0 |
| dad-vrf | O | vrf:vrf-ref | VRF name, MC-LAG DAD keepalive session belongs to the VRF that specifies the VRF of the routing port to which the local-address belongs |
| commit | O | ”true" "false” | This is a special leaf to control behavior of server on processing running configuration. If set to false, configurations within its ancestor setting to running datastore WOULD NOT be transferred to operational datastore automatically, until a request containing this leaf with value ‘true’ comes. Normally this leaf can be ignored. Default value: True |
| members | M | Path-only node, has no configurable value. | |
| member | M | Path-only node, has no configurable value. | |
| name | O | cmn:port-channel-name | |
| active-backup-mode | O | ”true" "false” | Whether to enable the active-backup-mode of mclag member, the default mode is active-active mode. Default value: False |
| unique-ip | M | Path-only node, has no configurable value. Unique ip VLAN ID | |
| vlanid | O | cmn:vlan-id |
Member
Section titled “Member”Tree Diagram
module: asternos-mclag +--rw mclag-domainsUnique Ip
Section titled “Unique Ip”Tree Diagram
module: asternos-mclag +--rw mclag-domainsMclag Global
Section titled “Mclag Global”Tree Diagram
module: asternos-mclag +--rw mclag-global +--rw enabled? booleanTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| mclag-global | M | Path-only node, has no configurable value. | |
| enabled | O | ”true" "false” | Indicates if the mclag is enabled |
Show Mclag Consistency Check Result
Section titled “Show Mclag Consistency Check Result”Tree Diagram
module: asternos-mclag
rpcs: +---x show-mclag-consistency-check-result +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-mclag-consistency-check-result | O | ||
| data | O | Show MCLAG consistency check result. |
Show Mclag Member
Section titled “Show Mclag Member”Tree Diagram
module: asternos-mclag
rpcs: +---x show-mclag-member +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-mclag-member | O | ||
| data | O | Show MCLAG member. |
Show Mclag State
Section titled “Show Mclag State”Tree Diagram
module: asternos-mclag
rpcs: +---x show-mclag-state +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-mclag-state | O | ||
| data | O | Show MCLAG state. |