remove voq chassis check (#10805)
Why I did it Fixes #10793 How I did it Removed the switch_type validation from the Yang model. How to verify it compile sonic_yang_mgmt-1.0-py3-none-any.whl and sonic_yang_mgmt-1.0-py3-none-any.whl Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
This commit is contained in:
parent
942bef4475
commit
4a1e7d8581
@ -2,10 +2,6 @@
|
|||||||
"BGP_VOQ_CHASSIS_NEIGHBOR_TEST" : {
|
"BGP_VOQ_CHASSIS_NEIGHBOR_TEST" : {
|
||||||
"desc": "Load bgp voq chassis neighbor"
|
"desc": "Load bgp voq chassis neighbor"
|
||||||
},
|
},
|
||||||
"BGP_VOQ_CHASSIS_WITH_INVALID_SWITCH_TYPE_TEST" : {
|
|
||||||
"desc": "Load bgp voq chassis on non voq chassis switch",
|
|
||||||
"eStr": ["Bgp voq neighbor are applicable only when switch_type is voq"]
|
|
||||||
},
|
|
||||||
"BGP_VOQ_CHASSIS_ABSENT_LOCAL_ADDRESS_TEST" : {
|
"BGP_VOQ_CHASSIS_ABSENT_LOCAL_ADDRESS_TEST" : {
|
||||||
"desc": "Load bgp voq chassis with no local address",
|
"desc": "Load bgp voq chassis with no local address",
|
||||||
"eStrKey" : "Mandatory"
|
"eStrKey" : "Mandatory"
|
||||||
|
@ -40,47 +40,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"BGP_VOQ_CHASSIS_WITH_INVALID_SWITCH_TYPE_TEST": {
|
|
||||||
"sonic-bgp-voq-chassis-neighbor:sonic-bgp-voq-chassis-neighbor": {
|
|
||||||
"sonic-bgp-voq-chassis-neighbor:BGP_VOQ_CHASSIS_NEIGHBOR": {
|
|
||||||
"BGP_VOQ_CHASSIS_NEIGHBOR_LIST": [
|
|
||||||
{
|
|
||||||
"neighbor": "10.0.0.1",
|
|
||||||
"asn": "65001",
|
|
||||||
"holdtime": "180",
|
|
||||||
"keepalive": "60",
|
|
||||||
"local_addr": "10.0.0.2",
|
|
||||||
"name": "sonic-chassis-lc3",
|
|
||||||
"nhopself": "0",
|
|
||||||
"rrclient": "0",
|
|
||||||
"admin_status": "up"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"neighbor": "3333::3:6",
|
|
||||||
"asn": "65001",
|
|
||||||
"holdtime": "180",
|
|
||||||
"keepalive": "60",
|
|
||||||
"local_addr": "3333::3:3",
|
|
||||||
"name": "sonic-chassis-lc3",
|
|
||||||
"nhopself": "0",
|
|
||||||
"rrclient": "0",
|
|
||||||
"admin_status": "up"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"sonic-device_metadata:sonic-device_metadata": {
|
|
||||||
"sonic-device_metadata:DEVICE_METADATA": {
|
|
||||||
"localhost": {
|
|
||||||
"bgp_asn": "65001",
|
|
||||||
"default_bgp_status": "up",
|
|
||||||
"hostname": "sonic-chassis",
|
|
||||||
"platform": "voq-chassis",
|
|
||||||
"switch_type": "chassis-packet"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"BGP_VOQ_CHASSIS_ABSENT_LOCAL_ADDRESS_TEST": {
|
"BGP_VOQ_CHASSIS_ABSENT_LOCAL_ADDRESS_TEST": {
|
||||||
"sonic-bgp-voq-chassis-neighbor:sonic-bgp-voq-chassis-neighbor": {
|
"sonic-bgp-voq-chassis-neighbor:sonic-bgp-voq-chassis-neighbor": {
|
||||||
"sonic-bgp-voq-chassis-neighbor:BGP_VOQ_CHASSIS_NEIGHBOR": {
|
"sonic-bgp-voq-chassis-neighbor:BGP_VOQ_CHASSIS_NEIGHBOR": {
|
||||||
|
@ -54,9 +54,6 @@ module sonic-bgp-voq-chassis-neighbor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
must "(/dm:sonic-device_metadata/dm:DEVICE_METADATA/dm:localhost/dm:switch_type = 'voq')" {
|
|
||||||
error-message "Bgp voq neighbor are applicable only when switch_type is voq";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user