@@ -174,48 +174,48 @@ def test_minigraph_deployment_id(self):
174
174
def test_minigraph_ethernet_interfaces (self ):
175
175
argument = '-m "' + self .sample_graph_simple + '" -p "' + self .port_config + '" -v "PORT[\' Ethernet8\' ]"'
176
176
output = self .run_script (argument )
177
- self .assertEqual (output .strip (), "{'lanes': '37,38,39,40', 'description': 'Interface description', 'mtu': '9100', 'alias': 'fortyGigE0/8', 'admin_status': 'up', 'speed': '1000'}" )
177
+ self .assertEqual (output .strip (), "{'lanes': '37,38,39,40', 'description': 'Interface description', 'pfc_asym': 'off', ' mtu': '9100', 'alias': 'fortyGigE0/8', 'admin_status': 'up', 'speed': '1000'}" )
178
178
argument = '-m "' + self .sample_graph_simple + '" -p "' + self .port_config + '" -v "PORT[\' Ethernet12\' ]"'
179
179
output = self .run_script (argument )
180
- self .assertEqual (output .strip (), "{'lanes': '33,34,35,36', 'description ': 'Interface description ', 'mtu': '9100', 'alias': 'fortyGigE0/12', 'speed': '100000', 'fec ': 'rs '}" )
180
+ self .assertEqual (output .strip (), "{'lanes': '33,34,35,36', 'fec ': 'rs ', 'mtu': '9100', 'alias': 'fortyGigE0/12', 'pfc_asym': 'off', ' speed': '100000', 'description ': 'Interface description '}" )
181
181
182
182
def test_minigraph_extra_ethernet_interfaces (self ):
183
183
argument = '-m "' + self .sample_graph_simple + '" -p "' + self .port_config + '" -v "PORT"'
184
184
output = self .run_script (argument )
185
185
186
186
self .assertEqual (output .strip (), \
187
- "{'Ethernet8': {'lanes': '37,38,39,40', 'description': 'Interface description', 'mtu': '9100', 'alias': 'fortyGigE0/8', 'admin_status': 'up', 'speed': '1000'}, "
188
- "'Ethernet0': {'lanes': '29,30,31,32', 'description': 'fortyGigE0/0', 'mtu': '9100', 'alias': 'fortyGigE0/0', 'admin_status': 'up', 'speed': '10000'}, "
189
- "'Ethernet4': {'lanes': '25,26,27,28', 'description': 'fortyGigE0/4', 'mtu': '9100', 'alias': 'fortyGigE0/4', 'admin_status': 'up', 'speed': '25000'}, "
190
- "'Ethernet108': {'alias': 'fortyGigE0/108', 'lanes': '81,82,83,84', 'description': 'fortyGigE0/108', 'mtu': '9100'}, "
191
- "'Ethernet100': {'alias': 'fortyGigE0/100', 'lanes': '125,126,127,128', 'description': 'fortyGigE0/100', 'mtu': '9100'}, "
192
- "'Ethernet104': {'alias': 'fortyGigE0/104', 'lanes': '85,86,87,88', 'description': 'fortyGigE0/104', 'mtu': '9100'}, "
193
- "'Ethernet68': {'alias': 'fortyGigE0/68', 'lanes': '69,70,71,72', 'description': 'fortyGigE0/68', 'mtu': '9100'}, "
194
- "'Ethernet96': {'alias': 'fortyGigE0/96', 'lanes': '121,122,123,124', 'description': 'fortyGigE0/96', 'mtu': '9100'}, "
195
- "'Ethernet124': {'alias': 'fortyGigE0/124', 'lanes': '101,102,103,104', 'description': 'fortyGigE0/124', 'mtu': '9100'}, "
196
- "'Ethernet92': {'alias': 'fortyGigE0/92', 'lanes': '113,114,115,116', 'description': 'fortyGigE0/92', 'mtu': '9100'}, "
197
- "'Ethernet120': {'alias': 'fortyGigE0/120', 'lanes': '97,98,99,100', 'description': 'fortyGigE0/120', 'mtu': '9100'}, "
198
- "'Ethernet52': {'alias': 'fortyGigE0/52', 'lanes': '53,54,55,56', 'description': 'fortyGigE0/52', 'mtu': '9100'}, "
199
- "'Ethernet56': {'alias': 'fortyGigE0/56', 'lanes': '61,62,63,64', 'description': 'fortyGigE0/56', 'mtu': '9100'}, "
200
- "'Ethernet76': {'alias': 'fortyGigE0/76', 'lanes': '73,74,75,76', 'description': 'fortyGigE0/76', 'mtu': '9100'}, "
201
- "'Ethernet72': {'alias': 'fortyGigE0/72', 'lanes': '77,78,79,80', 'description': 'fortyGigE0/72', 'mtu': '9100'}, "
202
- "'Ethernet64': {'alias': 'fortyGigE0/64', 'lanes': '65,66,67,68', 'description': 'fortyGigE0/64', 'mtu': '9100'}, "
203
- "'Ethernet32': {'alias': 'fortyGigE0/32', 'lanes': '9,10,11,12', 'description': 'fortyGigE0/32', 'mtu': '9100'}, "
204
- "'Ethernet16': {'alias': 'fortyGigE0/16', 'lanes': '41,42,43,44', 'description': 'fortyGigE0/16', 'mtu': '9100'}, "
205
- "'Ethernet36': {'alias': 'fortyGigE0/36', 'lanes': '13,14,15,16', 'description': 'fortyGigE0/36', 'mtu': '9100'}, "
206
- "'Ethernet12': {'lanes': '33,34,35,36', 'description ': 'Interface description ', 'mtu': '9100', 'alias': 'fortyGigE0/12', 'speed': '100000', 'fec ': 'rs '}, "
207
- "'Ethernet88': {'alias': 'fortyGigE0/88', 'lanes': '117,118,119,120', 'description': 'fortyGigE0/88', 'mtu': '9100'}, "
208
- "'Ethernet116': {'alias': 'fortyGigE0/116', 'lanes': '93,94,95,96', 'description': 'fortyGigE0/116', 'mtu': '9100'}, "
209
- "'Ethernet80': {'alias': 'fortyGigE0/80', 'lanes': '105,106,107,108', 'description': 'fortyGigE0/80', 'mtu': '9100'}, "
210
- "'Ethernet112': {'alias': 'fortyGigE0/112', 'lanes': '89,90,91,92', 'description': 'fortyGigE0/112', 'mtu': '9100'}, "
211
- "'Ethernet84': {'alias': 'fortyGigE0/84', 'lanes': '109,110,111,112', 'description': 'fortyGigE0/84', 'mtu': '9100'}, "
212
- "'Ethernet48': {'alias': 'fortyGigE0/48', 'lanes': '49,50,51,52', 'description': 'fortyGigE0/48', 'mtu': '9100'}, "
213
- "'Ethernet44': {'alias': 'fortyGigE0/44', 'lanes': '17,18,19,20', 'description': 'fortyGigE0/44', 'mtu': '9100'}, "
214
- "'Ethernet40': {'alias': 'fortyGigE0/40', 'lanes': '21,22,23,24', 'description': 'fortyGigE0/40', 'mtu': '9100'}, "
215
- "'Ethernet28': {'alias': 'fortyGigE0/28', 'lanes': '1,2,3,4', 'description': 'fortyGigE0/28', 'mtu': '9100'}, "
216
- "'Ethernet60': {'alias': 'fortyGigE0/60', 'lanes': '57,58,59,60', 'description': 'fortyGigE0/60', 'mtu': '9100'}, "
217
- "'Ethernet20': {'alias': 'fortyGigE0/20', 'lanes': '45,46,47,48', 'description': 'fortyGigE0/20', 'mtu': '9100'}, "
218
- "'Ethernet24': {'alias': 'fortyGigE0/24', 'lanes': '5,6,7,8', 'description': 'fortyGigE0/24', 'mtu': '9100'}}" )
187
+ "{'Ethernet8': {'lanes': '37,38,39,40', 'description': 'Interface description', 'pfc_asym': 'off', ' mtu': '9100', 'alias': 'fortyGigE0/8', 'admin_status': 'up', 'speed': '1000'}, "
188
+ "'Ethernet0': {'lanes': '29,30,31,32', 'description': 'fortyGigE0/0', 'pfc_asym': 'off', ' mtu': '9100', 'alias': 'fortyGigE0/0', 'admin_status': 'up', 'speed': '10000'}, "
189
+ "'Ethernet4': {'lanes': '25,26,27,28', 'description': 'fortyGigE0/4', 'pfc_asym': 'off', ' mtu': '9100', 'alias': 'fortyGigE0/4', 'admin_status': 'up', 'speed': '25000'}, "
190
+ "'Ethernet108': {'alias': 'fortyGigE0/108', 'pfc_asym': 'off', ' lanes': '81,82,83,84', 'description': 'fortyGigE0/108', 'mtu': '9100'}, "
191
+ "'Ethernet100': {'alias': 'fortyGigE0/100', 'pfc_asym': 'off', ' lanes': '125,126,127,128', 'description': 'fortyGigE0/100', 'mtu': '9100'}, "
192
+ "'Ethernet104': {'alias': 'fortyGigE0/104', 'pfc_asym': 'off', ' lanes': '85,86,87,88', 'description': 'fortyGigE0/104', 'mtu': '9100'}, "
193
+ "'Ethernet68': {'alias': 'fortyGigE0/68', 'pfc_asym': 'off', ' lanes': '69,70,71,72', 'description': 'fortyGigE0/68', 'mtu': '9100'}, "
194
+ "'Ethernet96': {'alias': 'fortyGigE0/96', 'pfc_asym': 'off', ' lanes': '121,122,123,124', 'description': 'fortyGigE0/96', 'mtu': '9100'}, "
195
+ "'Ethernet124': {'alias': 'fortyGigE0/124', 'pfc_asym': 'off', ' lanes': '101,102,103,104', 'description': 'fortyGigE0/124', 'mtu': '9100'}, "
196
+ "'Ethernet92': {'alias': 'fortyGigE0/92', 'pfc_asym': 'off', ' lanes': '113,114,115,116', 'description': 'fortyGigE0/92', 'mtu': '9100'}, "
197
+ "'Ethernet120': {'alias': 'fortyGigE0/120', 'pfc_asym': 'off', ' lanes': '97,98,99,100', 'description': 'fortyGigE0/120', 'mtu': '9100'}, "
198
+ "'Ethernet52': {'alias': 'fortyGigE0/52', 'pfc_asym': 'off', ' lanes': '53,54,55,56', 'description': 'fortyGigE0/52', 'mtu': '9100'}, "
199
+ "'Ethernet56': {'alias': 'fortyGigE0/56', 'pfc_asym': 'off', ' lanes': '61,62,63,64', 'description': 'fortyGigE0/56', 'mtu': '9100'}, "
200
+ "'Ethernet76': {'alias': 'fortyGigE0/76', 'pfc_asym': 'off', ' lanes': '73,74,75,76', 'description': 'fortyGigE0/76', 'mtu': '9100'}, "
201
+ "'Ethernet72': {'alias': 'fortyGigE0/72', 'pfc_asym': 'off', ' lanes': '77,78,79,80', 'description': 'fortyGigE0/72', 'mtu': '9100'}, "
202
+ "'Ethernet64': {'alias': 'fortyGigE0/64', 'pfc_asym': 'off', ' lanes': '65,66,67,68', 'description': 'fortyGigE0/64', 'mtu': '9100'}, "
203
+ "'Ethernet32': {'alias': 'fortyGigE0/32', 'pfc_asym': 'off', ' lanes': '9,10,11,12', 'description': 'fortyGigE0/32', 'mtu': '9100'}, "
204
+ "'Ethernet16': {'alias': 'fortyGigE0/16', 'pfc_asym': 'off', ' lanes': '41,42,43,44', 'description': 'fortyGigE0/16', 'mtu': '9100'}, "
205
+ "'Ethernet36': {'alias': 'fortyGigE0/36', 'pfc_asym': 'off', ' lanes': '13,14,15,16', 'description': 'fortyGigE0/36', 'mtu': '9100'}, "
206
+ "'Ethernet12': {'lanes': '33,34,35,36', 'fec ': 'rs ', 'mtu': '9100', 'alias': 'fortyGigE0/12', 'pfc_asym': 'off', ' speed': '100000', 'description ': 'Interface description '}, "
207
+ "'Ethernet88': {'alias': 'fortyGigE0/88', 'pfc_asym': 'off', ' lanes': '117,118,119,120', 'description': 'fortyGigE0/88', 'mtu': '9100'}, "
208
+ "'Ethernet116': {'alias': 'fortyGigE0/116', 'pfc_asym': 'off', ' lanes': '93,94,95,96', 'description': 'fortyGigE0/116', 'mtu': '9100'}, "
209
+ "'Ethernet80': {'alias': 'fortyGigE0/80', 'pfc_asym': 'off', ' lanes': '105,106,107,108', 'description': 'fortyGigE0/80', 'mtu': '9100'}, "
210
+ "'Ethernet112': {'alias': 'fortyGigE0/112', 'pfc_asym': 'off', ' lanes': '89,90,91,92', 'description': 'fortyGigE0/112', 'mtu': '9100'}, "
211
+ "'Ethernet84': {'alias': 'fortyGigE0/84', 'pfc_asym': 'off', ' lanes': '109,110,111,112', 'description': 'fortyGigE0/84', 'mtu': '9100'}, "
212
+ "'Ethernet48': {'alias': 'fortyGigE0/48', 'pfc_asym': 'off', ' lanes': '49,50,51,52', 'description': 'fortyGigE0/48', 'mtu': '9100'}, "
213
+ "'Ethernet44': {'alias': 'fortyGigE0/44', 'pfc_asym': 'off', ' lanes': '17,18,19,20', 'description': 'fortyGigE0/44', 'mtu': '9100'}, "
214
+ "'Ethernet40': {'alias': 'fortyGigE0/40', 'pfc_asym': 'off', ' lanes': '21,22,23,24', 'description': 'fortyGigE0/40', 'mtu': '9100'}, "
215
+ "'Ethernet28': {'alias': 'fortyGigE0/28', 'pfc_asym': 'off', ' lanes': '1,2,3,4', 'description': 'fortyGigE0/28', 'mtu': '9100'}, "
216
+ "'Ethernet60': {'alias': 'fortyGigE0/60', 'pfc_asym': 'off', ' lanes': '57,58,59,60', 'description': 'fortyGigE0/60', 'mtu': '9100'}, "
217
+ "'Ethernet20': {'alias': 'fortyGigE0/20', 'pfc_asym': 'off', ' lanes': '45,46,47,48', 'description': 'fortyGigE0/20', 'mtu': '9100'}, "
218
+ "'Ethernet24': {'alias': 'fortyGigE0/24', 'pfc_asym': 'off', ' lanes': '5,6,7,8', 'description': 'fortyGigE0/24', 'mtu': '9100'}}" )
219
219
220
220
def test_metadata_everflow (self ):
221
221
argument = '-m "' + self .sample_graph_metadata + '" -p "' + self .port_config + '" -v "MIRROR_SESSION"'
0 commit comments