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