You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added support to render Feature Table has_global_scope field. (#120)
What I did:
Added support to render Feature Table has_global_scope based on Device
Runtime Metadata
Why I did:
In some case we want to control a given feature should run in host/global namespace based on device runtime metadata. For example in case of chassis Linecard we want to run lldp on asic namespaces (front panel ports) and not on host/global (eth0 might be connected internally to the Supervisor and not to external management switch)
How I verify:
Manual Veriifcation
UT updated.
Copy file name to clipboardExpand all lines: tests/featured/test_vectors.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1083,7 +1083,7 @@
1083
1083
"lldp": {
1084
1084
"state": "enabled",
1085
1085
"delayed": "False",
1086
-
"has_global_scope": "True",
1086
+
"has_global_scope": "{% if ('CHASSIS_METADATA' in DEVICE_RUNTIME_METADATA and DEVICE_RUNTIME_METADATA['CHASSIS_METADATA']['module_type'] in ['linecard']) %}False{% else %}True{% endif %}",
1087
1087
"has_per_asic_scope": "{% if not DEVICE_RUNTIME_METADATA['ETHERNET_PORTS_PRESENT'] or ('CHASSIS_METADATA' in DEVICE_RUNTIME_METADATA and DEVICE_RUNTIME_METADATA['CHASSIS_METADATA']['module_type'] in ['supervisor']) %}False{% else %}True{% endif %}",
0 commit comments