-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tests/libyang-python-tests]: Changing yang models to generic and rem…
…oving reference to sonic. Changes: 1.) To avoid confusion, Changing yang models to generic and removing reference to sonic 2.) Additing Relative path whenever needed.
- Loading branch information
Praveen Chaudhary
committed
May 9, 2020
1 parent
57db247
commit f82637a
Showing
11 changed files
with
300 additions
and
386 deletions.
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
154 changes: 154 additions & 0 deletions
154
src/sonic-yang-mgmt/tests/libyang-python-tests/config_data_merge.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,154 @@ | ||
{ | ||
"test-vlan:vlan": { | ||
"test-vlan:VLAN_INTERFACE": { | ||
"VLAN_INTERFACE_LIST": [{ | ||
"vlanid": 111, | ||
"ip-prefix": "2000:f500:45:6709::1/64", | ||
"scope": "global", | ||
"family": "IPv6" | ||
}, | ||
{ | ||
"vlanid": 111, | ||
"ip-prefix": "10.1.1.64/26", | ||
"scope": "global", | ||
"family": "IPv4" | ||
}, | ||
{ | ||
"vlanid": 200, | ||
"ip-prefix": "2000:f500:45:6708::1/64", | ||
"scope": "global", | ||
"family": "IPv6" | ||
}, | ||
{ | ||
"vlanid": 200, | ||
"ip-prefix": "2000:f500:45:6709::1/64", | ||
"scope": "global", | ||
"family": "IPv6" | ||
} | ||
] | ||
}, | ||
|
||
"test-vlan:VLAN": { | ||
"VLAN_LIST": [{ | ||
"vlanid": 200, | ||
"description": "server_vlan", | ||
"dhcp_servers": [ | ||
"10.1.72.116" | ||
], | ||
"mtu": "9216", | ||
"admin_status": "up" | ||
}, | ||
{ | ||
"vlanid": 111, | ||
"description": "server_vlan", | ||
"dhcp_servers": [ | ||
"10.1.72.116" | ||
], | ||
"mtu": "9216", | ||
"admin_status": "up" | ||
} | ||
] | ||
}, | ||
|
||
"test-vlan:VLAN_MEMBER": { | ||
"VLAN_MEMBER_LIST": [{ | ||
"vlanid": 200, | ||
"port": "Ethernet0", | ||
"tagging_mode": "tagged" | ||
}] | ||
} | ||
}, | ||
"test-port:port": { | ||
"test-port:PORT": { | ||
"PORT_LIST": [{ | ||
"port_name": "Ethernet0", | ||
"alias": "eth0", | ||
"description": "Ethernet0", | ||
"speed": 25000, | ||
"mtu": 9000, | ||
"admin_status": "up" | ||
}, | ||
{ | ||
"port_name": "Ethernet1", | ||
"alias": "eth1", | ||
"description": "Ethernet1", | ||
"speed": 25000, | ||
"mtu": 9000, | ||
"admin_status": "up" | ||
}, | ||
{ | ||
"port_name": "Ethernet2", | ||
"alias": "eth2", | ||
"description": "Ethernet2", | ||
"speed": 25000, | ||
"mtu": 9000, | ||
"admin_status": "up" | ||
}, | ||
{ | ||
"port_name": "Ethernet3", | ||
"alias": "eth2", | ||
"description": "Ethernet3", | ||
"speed": 25000, | ||
"mtu": 9000, | ||
"admin_status": "up" | ||
}, | ||
{ | ||
"port_name": "Ethernet4", | ||
"alias": "eth4", | ||
"description": "Ethernet4", | ||
"speed": 25000, | ||
"mtu": 9000, | ||
"admin_status": "up" | ||
}, | ||
{ | ||
"port_name": "Ethernet5", | ||
"alias": "eth5", | ||
"description": "Ethernet5", | ||
"speed": 25000, | ||
"mtu": 9000, | ||
"admin_status": "up" | ||
}, | ||
{ | ||
"port_name": "Ethernet6", | ||
"alias": "eth6", | ||
"description": "Ethernet6", | ||
"speed": 25000, | ||
"mtu": 9000, | ||
"admin_status": "up" | ||
}, | ||
{ | ||
"port_name": "Ethernet7", | ||
"alias": "eth7", | ||
"description": "Ethernet7", | ||
"speed": 25000, | ||
"mtu": 9000, | ||
"admin_status": "up" | ||
}, | ||
{ | ||
"port_name": "Ethernet8", | ||
"alias": "eth8", | ||
"description": "Ethernet8", | ||
"speed": 25000, | ||
"mtu": 9000, | ||
"admin_status": "up" | ||
}, | ||
{ | ||
"port_name": "Ethernet9", | ||
"alias": "eth9", | ||
"description": "Ethernet9", | ||
"speed": 25000, | ||
"mtu": 9000, | ||
"admin_status": "up" | ||
}, | ||
{ | ||
"port_name": "Ethernet10", | ||
"alias": "eth10", | ||
"description": "Ethernet10", | ||
"speed": 25000, | ||
"mtu": 9000, | ||
"admin_status": "up" | ||
} | ||
] | ||
} | ||
} | ||
} |
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
14 changes: 4 additions & 10 deletions
14
...s/sample-yang-models/test-sonic-head.yang → ...n-tests/sample-yang-models/test-head.yang
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
Oops, something went wrong.