Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/sonic-yang-models/doc/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1766,14 +1766,15 @@ instead of data network.
```
### MUX_CABLE

The **MUX_CABLE** table is used for dualtor interface configuration. The `cable_type`, `soc_ipv4` and `neighbor_mode` objects are optional.
The **MUX_CABLE** table is used for dualtor interface configuration. The `cable_type`, `soc_ipv4`, `neighbor_mode` and `failover_mode` objects are optional.

```
{
"MUX_CABLE": {
"Ethernet4": {
"cable_type": "active-active",
"neighbor_mode": "prefix-route",
"failover_mode": "hardware",
"server_ipv4": "192.168.0.2/32",
"server_ipv6": "fc02:1000::30/128",
"soc_ipv4": "192.168.0.3/32",
Expand Down
1 change: 1 addition & 0 deletions src/sonic-yang-models/tests/files/sample_config_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -2600,6 +2600,7 @@
"cable_type": "active-active",
"prober_type": "software",
"neighbor_mode": "prefix-route",
"failover_mode": "hardware",
"server_ipv4": "192.168.0.2/32",
"server_ipv6": "fc02:1000::30/128",
"soc_ipv4": "192.168.0.3/32",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"cable_type": "active-active",
"prober_type": "software",
"neighbor_mode": "prefix-route",
"failover_mode": "hardware",
"server_ipv4": "192.168.0.2/32",
"server_ipv6": "fc02:1000::30/128",
"soc_ipv4": "192.168.0.3/32",
Expand Down
9 changes: 9 additions & 0 deletions src/sonic-yang-models/yang-models/sonic-mux-cable.yang
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ module sonic-mux-cable {
description "DualToR MUX neighbor mode.";
}

leaf failover_mode {
type enumeration {
enum hardware;
enum software;
}
default software;
description "DualToR MUX failover mode.";
}

leaf server_ipv4 {
type inet:ipv4-prefix;

Expand Down
Loading