-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GCU] Supporting Groupings during path-xpath translation (#2044)
#### What I did Fixes #2041 Supporting groupings during `config-db path` <-> `config-yang xpath` translation This mimics the `config-db` <-> `config-yang` translation as added by sonic-net/sonic-buildimage#8318 #### How I did it Handled groupings of leaf commands only as that's what is supported in sonic-yang-mgmt #### How to verify it unit-test #### Previous command output (if the output of a command-line utility has changed) #### New command output (if the output of a command-line utility has changed)
- Loading branch information
1 parent
1c5dab6
commit 50bacce
Showing
4 changed files
with
127 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
tests/generic_config_updater/files/config_db_with_bgp_neighbor.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"BGP_NEIGHBOR": { | ||
"1.2.3.4": { | ||
"admin_status": "up", | ||
"asn": "65000", | ||
"holdtime": "10", | ||
"keepalive": "3", | ||
"local_addr": "10.0.0.10", | ||
"name": "ARISTA03T1", | ||
"nhopself": "0", | ||
"rrclient": "0" | ||
}, | ||
"default|1.2.3.4": { | ||
"local_asn": "65200", | ||
"asn": "65100", | ||
"name": "bgp peer 65100", | ||
"ebgp_multihop_ttl": "3" | ||
} | ||
}, | ||
"BGP_MONITORS": { | ||
"5.6.7.8": { | ||
"admin_status": "up", | ||
"asn": "65000", | ||
"holdtime": "180", | ||
"keepalive": "60", | ||
"local_addr": "10.0.0.11", | ||
"name": "BGPMonitor", | ||
"nhopself": "0", | ||
"rrclient": "0" | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/generic_config_updater/files/config_db_with_lldp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"LLDP": { | ||
"GLOBAL": { | ||
"mode": "TRANSMIT", | ||
"enabled": "true", | ||
"hello_time": "12", | ||
"multiplier": "5", | ||
"supp_mgmt_address_tlv": "true", | ||
"supp_system_capabilities_tlv": "false", | ||
"system_name": "sonic", | ||
"system_description": "sonic-system" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters