Skip to content

Commit

Permalink
Merge pull request #300 from robshakir/fix_oc_models_tests
Browse files Browse the repository at this point in the history
Fix oc models tests
  • Loading branch information
JoseIgnacioTamayo authored Jul 19, 2023
2 parents ede1642 + 4ad8f3a commit 23a7a0d
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 14 deletions.
13 changes: 13 additions & 0 deletions tests/integration/openconfig-bgp/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ class OpenconfigBGPTests(PyangBindTestCase):
"types/openconfig-types.yang",
"types/openconfig-inet-types.yang",
"types/openconfig-yang-types.yang",
"rib/openconfig-rib-bgp.yang",
"rib/openconfig-rib-bgp-tables.yang",
"rib/openconfig-rib-bgp-shared-attributes.yang",
"rib/openconfig-rib-bgp-attributes.yang",
"rib/openconfig-rib-bgp-table-attributes.yang",
"rib/openconfig-rib-bgp-types.yang",
"segment-routing/openconfig-segment-routing-types.yang",
"network-instance/openconfig-network-instance-types.yang",
"network-instance/openconfig-evpn-types.yang",
"mpls/openconfig-mpls-types.yang",
"bfd/openconfig-bfd.yang",
"optical-transport/openconfig-transport-types.yang",
"platform/openconfig-platform-types.yang",
],
},
{
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/openconfig-interfaces/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class OpenconfigInterfacesTests(PyangBindTestCase):
"vlan/openconfig-vlan-types.yang",
"types/openconfig-inet-types.yang",
"types/openconfig-yang-types.yang",
"optical-transport/openconfig-transport-types.yang",
"platform/openconfig-platform-types.yang",
],
},
{
Expand All @@ -45,7 +47,6 @@ class OpenconfigInterfacesTests(PyangBindTestCase):
"interfaces/openconfig-if-ip.yang",
"interfaces/openconfig-if-ethernet.yang",
"interfaces/openconfig-if-aggregate.yang",
"interfaces/openconfig-if-types.yang",
"interfaces/openconfig-interfaces.yang",
],
},
Expand Down
13 changes: 13 additions & 0 deletions tests/serialise/juniper-json-examples/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ class JuniperJSONTests(PyangBindTestCase):
"types/openconfig-inet-types.yang",
"types/openconfig-yang-types.yang",
"bgp/openconfig-bgp-types.yang",
"rib/openconfig-rib-bgp.yang",
"rib/openconfig-rib-bgp-tables.yang",
"rib/openconfig-rib-bgp-shared-attributes.yang",
"rib/openconfig-rib-bgp-attributes.yang",
"rib/openconfig-rib-bgp-table-attributes.yang",
"rib/openconfig-rib-bgp-types.yang",
"segment-routing/openconfig-segment-routing-types.yang",
"network-instance/openconfig-network-instance-types.yang",
"network-instance/openconfig-evpn-types.yang",
"mpls/openconfig-mpls-types.yang",
"bfd/openconfig-bfd.yang",
"optical-transport/openconfig-transport-types.yang",
"platform/openconfig-platform-types.yang",
],
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"config": {
"enabled": true,
"loopback-mode": false,
"loopback-mode": "NONE",
"type": "",
"description": "",
"name": "",
Expand All @@ -25,7 +25,10 @@
"type": "",
"description": "",
"enabled": true,
"loopback-mode": false,
"loopback-mode": "NONE",
"cpu": false,
"management": false,
"logical": false,
"admin-status": "",
"mtu": 0,
"ifindex": 0,
Expand All @@ -47,7 +50,9 @@
"in-broadcast-pkts": 0,
"carrier-transitions": 0,
"in-unknown-protos": 0,
"in-octets": 0
"in-octets": 0,
"in-pkts": 0,
"out-pkts": 0
}
},
"name": "eth0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"config": {
"enabled": false,
"loopback-mode": false,
"loopback-mode": "",
"type": "",
"description": "",
"name": "",
Expand All @@ -25,7 +25,10 @@
"type": "",
"description": "",
"enabled": false,
"loopback-mode": false,
"cpu": false,
"loopback-mode": "",
"logical":false,
"management": false,
"admin-status": "",
"mtu": 0,
"ifindex": 0,
Expand All @@ -47,7 +50,9 @@
"in-broadcast-pkts": "0",
"carrier-transitions": "0",
"in-unknown-protos": "0",
"in-octets": "0"
"in-octets": "0",
"in-pkts": "0",
"out-pkts": "0"
}
},
"name": "eth0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,21 @@
},
"config": {
"enabled": true,
"loopback-mode": false,
"loopback-mode": "NONE",
"type": "",
"description": "",
"name": "eth0",
"mtu": 0
},
"state": {
"loopback-mode": false,
"name": "",
"type": "",
"description": "",
"enabled": true,
"loopback-mode": false,
"loopback-mode": "NONE",
"logical": false,
"management": false,
"cpu": false,
"admin-status": "",
"mtu": 0,
"ifindex": 0,
Expand All @@ -48,7 +50,9 @@
"in-broadcast-pkts": 0,
"carrier-transitions": 0,
"in-unknown-protos": 0,
"in-octets": 0
"in-octets": 0,
"in-pkts":0,
"out-pkts": 0
}
},
"name": "eth0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"config": {
"enabled": false,
"loopback-mode": false,
"loopback-mode": "",
"type": "",
"description": "",
"name": "eth0",
Expand All @@ -25,7 +25,10 @@
"type": "",
"description": "",
"enabled": false,
"loopback-mode": false,
"logical": false,
"loopback-mode": "",
"management": false,
"cpu": false,
"admin-status": "",
"mtu": 0,
"ifindex": 0,
Expand All @@ -47,7 +50,9 @@
"in-broadcast-pkts": "0",
"carrier-transitions": "0",
"in-unknown-protos": "0",
"in-octets": "0"
"in-octets": "0",
"in-pkts": "0",
"out-pkts": "0"
}
},
"name": "eth0"
Expand Down
2 changes: 2 additions & 0 deletions tests/serialise/openconfig-serialise/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class OpenconfigSerialiseTests(PyangBindTestCase):
"types/openconfig-types.yang",
"types/openconfig-yang-types.yang",
"types/openconfig-inet-types.yang",
"optical-transport/openconfig-transport-types.yang",
"platform/openconfig-platform-types.yang",
],
},
{
Expand Down

0 comments on commit 23a7a0d

Please sign in to comment.