Extreme API with Python

Table Of Contents
Extreme API with Python
Page | 48
Part no.9036931-00 Rev AA February 2021
# you list the existing vlans after to check again
print("-"*42)
list_vlans(rest)
Adding this code results in re-creating VLAN “H2G2”, and then renaming it to Zaphod:
C:\Extreme API with Python> rest_example.py -i 192.168.56.121 -u admin
Found VLAN Default with VID 1
Found VLAN VLAN_0054 with VID 54
Found VLAN interco with VID 4094
------------------------------------------
Found VLAN Default with VID 1
Found VLAN H2G2 with VID 42
Found VLAN VLAN_0054 with VID 54
Found VLAN interco with VID 4094
------------------------------------------
Found VLAN Default with VID 1
Found VLAN VLAN_0054 with VID 54
Found VLAN interco with VID 4094
------------------------------------------
Found VLAN Default with VID 1
Found VLAN H2G2 with VID 42
Found VLAN VLAN_0054 with VID 54
Found VLAN interco with VID 4094
------------------------------------------
Found VLAN Default with VID 1
Found VLAN Zaphod with VID 42
Found VLAN VLAN_0054 with VID 54
Found VLAN interco with VID 4094
The result also appears for the switch:
sw1.11 # sh log
06/09/2020 23:30:29.75 <Info:AAA.logout> Administrative account (admin) logout from app
(192.168.56.1)
06/09/2020 23:30:17.91 <Info:System.userComment> Ohoh! VLAN H2G2 has been deleted
06/09/2020 23:30:09.74 <Info:AAA.authPass> Login passed for user admin through app (192.168.56.1)
06/09/2020 23:17:01.39 <Info:AAA.logout> Administrative account (admin) logout from app
(192.168.56.1)
06/09/2020 23:16:49.58 <Info:System.userComment> Ohoh! VLAN H2G2 has been deleted
06/09/2020 23:16:41.39 <Info:AAA.authPass> Login passed for user admin through app (192.168.56.1)
06/09/2020 23:16:30.52 <Noti:log.ClrLogMsg> User admin: Cleared the log messages in memory-
buffer.
A total of 7 log messages are displayed.
* sw1.11 #
* sw1.11 # sh vlan
Untagged ports auto-move: Inform
-----------------------------------------------------------------------------------------------
Name VID Protocol Addr Flags Proto Ports Virtual
Active router
/Total
-----------------------------------------------------------------------------------------------