|
1030 | 1030 | },
|
1031 | 1031 | },
|
1032 | 1032 | ],
|
| 1033 | + [ |
| 1034 | + "Chassis_LineCard_VOQ_multinpu", |
| 1035 | + { |
| 1036 | + "num_npu": 2, |
| 1037 | + "device_runtime_metadata": { |
| 1038 | + "DEVICE_RUNTIME_METADATA": { |
| 1039 | + "CHASSIS_METADATA": { |
| 1040 | + "module_type": "linecard", |
| 1041 | + "chassis_type": "voq" |
| 1042 | + }, |
| 1043 | + "ETHERNET_PORTS_PRESENT":True, |
| 1044 | + "MACSEC_SUPPORTED":True |
| 1045 | + } |
| 1046 | + }, |
| 1047 | + "config_db": { |
| 1048 | + "DEVICE_METADATA": { |
| 1049 | + "localhost": { |
| 1050 | + "type": "SpineRouter", |
| 1051 | + } |
| 1052 | + }, |
| 1053 | + "KDUMP": { |
| 1054 | + "config": { |
| 1055 | + "enabled": "false", |
| 1056 | + "num_dumps": "3", |
| 1057 | + "memory": "0M-2G:256M,2G-4G:320M,4G-8G:384M,8G-:448M" |
| 1058 | + } |
| 1059 | + }, |
| 1060 | + "FEATURE": { |
| 1061 | + "bgp": { |
| 1062 | + "state": "{% 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']) %}disabled{% else %}enabled{% endif %}", |
| 1063 | + "has_timer": "False", |
| 1064 | + "has_global_scope": "False", |
| 1065 | + "has_per_asic_scope": "True", |
| 1066 | + "auto_restart": "enabled", |
| 1067 | + "high_mem_alert": "disabled" |
| 1068 | + }, |
| 1069 | + "teamd": { |
| 1070 | + "state": "{% if not DEVICE_RUNTIME_METADATA['ETHERNET_PORTS_PRESENT'] %}disabled{% else %}enabled{% endif %}", |
| 1071 | + "has_timer": "False", |
| 1072 | + "has_global_scope": "False", |
| 1073 | + "has_per_asic_scope": "True", |
| 1074 | + "auto_restart": "enabled", |
| 1075 | + "high_mem_alert": "disabled" |
| 1076 | + }, |
| 1077 | + "lldp": { |
| 1078 | + "state": "enabled", |
| 1079 | + "has_timer": "False", |
| 1080 | + "has_global_scope": "True", |
| 1081 | + "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 %}", |
| 1082 | + "auto_restart": "enabled", |
| 1083 | + "high_mem_alert": "disabled" |
| 1084 | + }, |
| 1085 | + "macsec": { |
| 1086 | + "state": "{% if 'type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['type'] == 'SpineRouter' and DEVICE_RUNTIME_METADATA['MACSEC_SUPPORTED'] %}enabled{% else %}disabled{% endif %}", |
| 1087 | + "has_timer": "False", |
| 1088 | + "has_global_scope": "False", |
| 1089 | + "has_per_asic_scope": "True", |
| 1090 | + "auto_restart": "enabled", |
| 1091 | + "high_mem_alert": "disabled" |
| 1092 | + } |
| 1093 | + }, |
| 1094 | + }, |
| 1095 | + "expected_config_db": { |
| 1096 | + "FEATURE": { |
| 1097 | + "bgp": { |
| 1098 | + "auto_restart": "enabled", |
| 1099 | + "has_global_scope": "False", |
| 1100 | + "has_per_asic_scope": "True", |
| 1101 | + "has_timer": "False", |
| 1102 | + "high_mem_alert": "disabled", |
| 1103 | + "state": "enabled" |
| 1104 | + }, |
| 1105 | + "teamd": { |
| 1106 | + "auto_restart": "enabled", |
| 1107 | + "has_global_scope": "False", |
| 1108 | + "has_per_asic_scope": "True", |
| 1109 | + "has_timer": "False", |
| 1110 | + "high_mem_alert": "disabled", |
| 1111 | + "state": "enabled" |
| 1112 | + }, |
| 1113 | + "lldp": { |
| 1114 | + "auto_restart": "enabled", |
| 1115 | + "has_global_scope": "True", |
| 1116 | + "has_per_asic_scope": "True", |
| 1117 | + "has_timer": "False", |
| 1118 | + "high_mem_alert": "disabled", |
| 1119 | + "state": "enabled" |
| 1120 | + }, |
| 1121 | + "macsec": { |
| 1122 | + "auto_restart": "enabled", |
| 1123 | + "has_global_scope": "False", |
| 1124 | + "has_per_asic_scope": "True", |
| 1125 | + "has_timer": "False", |
| 1126 | + "high_mem_alert": "disabled", |
| 1127 | + "state": "enabled" |
| 1128 | + } |
| 1129 | + }, |
| 1130 | + }, |
| 1131 | + "enable_feature_subprocess_calls": [ |
| 1132 | + call( 'sudo systemctl unmask [email protected]', shell=True), |
| 1133 | + call( 'sudo systemctl enable [email protected]', shell=True), |
| 1134 | + call( 'sudo systemctl start [email protected]', shell=True), |
| 1135 | + call( 'sudo systemctl unmask [email protected]', shell=True), |
| 1136 | + call( 'sudo systemctl enable [email protected]', shell=True), |
| 1137 | + call( 'sudo systemctl start [email protected]', shell=True), |
| 1138 | + call( 'sudo systemctl unmask [email protected]', shell=True), |
| 1139 | + call( 'sudo systemctl enable [email protected]', shell=True), |
| 1140 | + call( 'sudo systemctl start [email protected]', shell=True), |
| 1141 | + call( 'sudo systemctl unmask [email protected]', shell=True), |
| 1142 | + call( 'sudo systemctl enable [email protected]', shell=True), |
| 1143 | + call( 'sudo systemctl start [email protected]', shell=True), |
| 1144 | + call('sudo systemctl unmask lldp.service', shell=True), |
| 1145 | + call('sudo systemctl enable lldp.service', shell=True), |
| 1146 | + call('sudo systemctl start lldp.service', shell=True), |
| 1147 | + call( 'sudo systemctl unmask [email protected]', shell=True), |
| 1148 | + call( 'sudo systemctl enable [email protected]', shell=True), |
| 1149 | + call( 'sudo systemctl start [email protected]', shell=True), |
| 1150 | + call( 'sudo systemctl unmask [email protected]', shell=True), |
| 1151 | + call( 'sudo systemctl enable [email protected]', shell=True), |
| 1152 | + call( 'sudo systemctl start [email protected]', shell=True), |
| 1153 | + call( 'sudo systemctl unmask [email protected]', shell=True), |
| 1154 | + call( 'sudo systemctl enable [email protected]', shell=True), |
| 1155 | + call( 'sudo systemctl start [email protected]', shell=True), |
| 1156 | + call( 'sudo systemctl unmask [email protected]', shell=True), |
| 1157 | + call( 'sudo systemctl enable [email protected]', shell=True), |
| 1158 | + call( 'sudo systemctl start [email protected]', shell=True) |
| 1159 | + ], |
| 1160 | + "daemon_reload_subprocess_call": [ |
| 1161 | + call("sudo systemctl daemon-reload", shell=True), |
| 1162 | + ], |
| 1163 | + "popen_attributes": { |
| 1164 | + 'communicate.return_value': ('output', 'error') |
| 1165 | + }, |
| 1166 | + }, |
| 1167 | + ] |
1033 | 1168 |
|
1034 | 1169 | ]
|
1035 | 1170 |
|
|
0 commit comments