network-insight-sdk-generic-datasources
network-insight-sdk-generic-datasources copied to clipboard
Unable to run SDK for Generic Router - ValueError: Empty module
Receiving the "ValueError: Empty module" error message when attempting to create VyOS template (took Ubiquiti templates (which runs similar commands as VyOS, and omitted values and modified the pre_post_processor.py file vyos-router.txt vyos.txt vyos_pre_post_processor.txt ):
2021-08-24 16:11:29,238: physical_device.py: 103 ERROR : Error occurred while executing command : Empty module name
Traceback (most recent call last):
File "./network_insight_sdk_generic_datasources/main.py", line 59, in <module>
main()
File "./network_insight_sdk_generic_datasources/main.py", line 52, in main
physical_device.process()
File "/home/jyanagi/api/network-insight-sdk-generic-datasources/network_insight_sdk_generic_datasources/common/physical_device.py", line 48, in process
self.execute_commands()
File "/home/jyanagi/api/network-insight-sdk-generic-datasources/network_insight_sdk_generic_datasources/common/physical_device.py", line 104, in execute_commands
raise e
File "/home/jyanagi/api/network-insight-sdk-generic-datasources/network_insight_sdk_generic_datasources/common/physical_device.py", line 97, in execute_commands
table = self.parse_command_output(workload, command_result)
File "/home/jyanagi/api/network-insight-sdk-generic-datasources/network_insight_sdk_generic_datasources/common/physical_device.py", line 116, in parse_command_output
block_parser = import_utilities.load_class(cmd[BLOCK_PARSER_KEY][NAME_KEY])()
File "/home/jyanagi/api/network-insight-sdk-generic-datasources/network_insight_sdk_generic_datasources/common/import_module_utilities.py", line 9, in load_class
module = importlib.import_module(".".join(class_path.split('.')[:-1]))
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1011, in _gcd_import
File "<frozen importlib._bootstrap>", line 950, in _sanity_check
ValueError: Empty module name
when performing the command:
python ./network_insight_sdk_generic_datasources/main.py -d vyos -m vyos-router -s VYOS -i 172.16.0.2 -u vyos -p vyos -o vyos-172.16.0.2.zip
/////////OUTPUT BELOW:
jyanagi@apiserver:~/api/network-insight-sdk-generic-datasources$ python ./network_insight_sdk_generic_datasources/main.py -d vyos -m vyos-router -s VYOS -i 172.16.0.2 -u vyos -p vyos -o vyos-172.16.0.2.zip
2021-08-24 16:11:19,916: log.py : 46 CRITICAL: Log file Name: /tmp/third_party_sdk_y25n7kya.log
2021-08-24 16:11:20,109: ssh_connect_handler.py: 23 INFO : Making connection to Device IP 172.16.0.2 Type vyos
2021-08-24 16:11:20,152: transport.py : 1819 INFO : Connected (version 2.0, client OpenSSH_5.5p1)
2021-08-24 16:11:20,351: transport.py : 1819 INFO : Auth banner: b'Welcome to VyOS\n'
2021-08-24 16:11:20,352: transport.py : 1819 INFO : Authentication (password) successful!
2021-08-24 16:11:24,690: physical_device.py: 85 INFO : Processing workload {'table_id': 'switch', 'command': 'show version', 'parser': {'pre_post_processor': 'VYOSVersionPrePostProcessor', 'name': 'network_insight_sdk_generic_datasources.parsers.common.vertical_table_parser.VerticalTableParser'}}
2021-08-24 16:11:24,690: ssh_connect_handler.py: 29 INFO : Executing command <show version>
2021-08-24 16:11:26,199: ssh_connect_handler.py: 31 INFO : Version: VyOS 1.1.8
Description: VyOS 1.1.8 (helium)
Copyright: 2017 VyOS maintainers and contributors
Built by: [email protected]
Built on: Sat Nov 11 13:44:36 UTC 2017
Build ID: 1711111344-b483efc
System type: x86 64-bit
Boot via: image
Hypervisor: KVM
HW model: Standard PC (i440FX + PIIX, 1996)
HW S/N: Not Specified
HW UUID: F6102BBD-F97C-0746-B6B9-8E19D7F7CEC9
Uptime: 20:10:34 up 6 days, 18:36, 3 users, load average: 0.00, 0.01, 0.05
2021-08-24 16:11:26,200: physical_device.py: 96 INFO : Command show version Result Version: VyOS 1.1.8
Description: VyOS 1.1.8 (helium)
Copyright: 2017 VyOS maintainers and contributors
Built by: [email protected]
Built on: Sat Nov 11 13:44:36 UTC 2017
Build ID: 1711111344-b483efc
System type: x86 64-bit
Boot via: image
Hypervisor: KVM
HW model: Standard PC (i440FX + PIIX, 1996)
HW S/N: Not Specified
HW UUID: F6102BBD-F97C-0746-B6B9-8E19D7F7CEC9
Uptime: 20:10:34 up 6 days, 18:36, 3 users, load average: 0.00, 0.01, 0.05
2021-08-24 16:11:26,204: physical_device.py: 85 INFO : Processing workload {'table_id': 'switch-ports', 'command': 'show interfaces detail | no-more', 'block_parser': {'name': 'GenericBlockParser', 'arguments': {'line_pattern': 'eth[0-9]\\.*:.*'}}, 'parser': {'pre_post_processor': 'VYOSSwitchPortPrePostProcessor', 'name': 'network_insight_sdk_generic_datasources.parsers.common.text_parser.GenericTextParser', 'arguments': {'rules': {'name': '^((eth\\d+)|(eth\\d+\\.\\d+)@eth\\d+)\\:', 'connected': '.* state (UP|DOWN).*', 'accessVlan': 'eth\\d+\\.(\\d+)', 'administrativeStatus': '.* state (UP|DOWN).*', 'operationalStatus': '.* state (UP|DOWN).*', 'hardwareAddress': '.*link/ether (\\w{1,2}\\:\\w{1,2}\\:\\w{1,2}\\:\\w{1,2}\\:\\w{1,2}\\:\\w{1,2}).*', 'interfaceSpeed': '.* BW (\\w+) Kbit.*', 'operationalSpeed': '.* BW (\\w+) Kbit.*', 'mtu': '.*mtu (\\d{4}).*', 'ipAddress': '^inet (\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}/\\d{1,3}) brd.*'}}}}
2021-08-24 16:11:26,204: ssh_connect_handler.py: 29 INFO : Executing command <show interfaces detail | no-more>
2021-08-24 16:11:27,715: ssh_connect_handler.py: 31 INFO : eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 50:00:00:05:00:00 brd ff:ff:ff:ff:ff:ff
inet 172.16.0.2/30 brd 172.16.0.3 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::5200:ff:fe05:0/64 scope link
valid_lft forever preferred_lft forever
RX: bytes packets errors dropped overrun mcast
821754553 932711 0 0 0 0
TX: bytes packets errors dropped carrier collisions
132419355 825939 0 0 0 0
eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000
link/ether 50:00:00:05:00:01 brd ff:ff:ff:ff:ff:ff
inet 172.16.0.5/30 brd 172.16.0.7 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::5200:ff:fe05:1/64 scope link
valid_lft forever preferred_lft forever
RX: bytes packets errors dropped overrun mcast
113930336 715939 0 0 0 0
TX: bytes packets errors dropped carrier collisions
409241011 431293 0 0 0 0
eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000
link/ether 50:00:00:05:00:02 brd ff:ff:ff:ff:ff:ff
inet 172.16.0.9/30 brd 172.16.0.11 scope global eth2
valid_lft forever preferred_lft forever
inet6 fe80::5200:ff:fe05:2/64 scope link
valid_lft forever preferred_lft forever
RX: bytes packets errors dropped overrun mcast
15028675 33130 0 0 0 0
TX: bytes packets errors dropped carrier collisions
409164532 428774 0 0 0 0
eth3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 50:00:00:05:00:03 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collisions
0 0 0 0 0 0
lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
RX: bytes packets errors dropped overrun mcast
43217232 716778 0 0 0 0
TX: bytes packets errors dropped carrier collisions
43217232 716778 0 0 0 0
2021-08-24 16:11:27,715: physical_device.py: 96 INFO : Command show interfaces detail | no-more Result eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 50:00:00:05:00:00 brd ff:ff:ff:ff:ff:ff
inet 172.16.0.2/30 brd 172.16.0.3 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::5200:ff:fe05:0/64 scope link
valid_lft forever preferred_lft forever
RX: bytes packets errors dropped overrun mcast
821754553 932711 0 0 0 0
TX: bytes packets errors dropped carrier collisions
132419355 825939 0 0 0 0
eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000
link/ether 50:00:00:05:00:01 brd ff:ff:ff:ff:ff:ff
inet 172.16.0.5/30 brd 172.16.0.7 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::5200:ff:fe05:1/64 scope link
valid_lft forever preferred_lft forever
RX: bytes packets errors dropped overrun mcast
113930336 715939 0 0 0 0
TX: bytes packets errors dropped carrier collisions
409241011 431293 0 0 0 0
eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000
link/ether 50:00:00:05:00:02 brd ff:ff:ff:ff:ff:ff
inet 172.16.0.9/30 brd 172.16.0.11 scope global eth2
valid_lft forever preferred_lft forever
inet6 fe80::5200:ff:fe05:2/64 scope link
valid_lft forever preferred_lft forever
RX: bytes packets errors dropped overrun mcast
15028675 33130 0 0 0 0
TX: bytes packets errors dropped carrier collisions
409164532 428774 0 0 0 0
eth3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 50:00:00:05:00:03 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collisions
0 0 0 0 0 0
lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
RX: bytes packets errors dropped overrun mcast
43217232 716778 0 0 0 0
TX: bytes packets errors dropped carrier collisions
43217232 716778 0 0 0 0
2021-08-24 16:11:27,725: physical_device.py: 85 INFO : Processing workload {'table_id': 'routes', 'command': 'show ip route | no-more', 'block_parser': {'name': 'GenericBlockParser'}, 'parser': {'pre_post_processor': 'VYOSRoutePrePostProcessor', 'name': 'network_insight_sdk_generic_datasources.parsers.common.horizontal_table_parser.HorizontalTableParser', 'arguments': {'header_keys': ['name', 'network', 'nextHop', 'interfaceName', 'routeType']}}}
2021-08-24 16:11:27,725: ssh_connect_handler.py: 29 INFO : Executing command <show ip route | no-more>
2021-08-24 16:11:29,237: ssh_connect_handler.py: 31 INFO : Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
I - ISIS, B - BGP, > - selected route, * - FIB route
B>* 0.0.0.0/0 [20/0] via 172.16.0.1, eth0, 6d18h35m
S 0.0.0.0/0 [125/0] via 172.16.0.1, eth0
B>* 1.2.3.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 4.5.6.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 7.8.9.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.10.10.10/32 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.0.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.1.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.10.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.11.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.12.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.13.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.20.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.21.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.30.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.31.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.17.0.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.17.1.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.17.11.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.17.12.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.28.10.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.28.13.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.28.14.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.28.15.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.192.80.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.192.81.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.192.82.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 13.13.13.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
C>* 127.0.0.0/8 is directly connected, lo
B>* 169.254.129.1/32 [20/0] via 172.16.0.1, eth0, 06:34:39
B 172.16.0.0/30 [20/0] via 172.16.0.1 inactive, 6d18h35m
C>* 172.16.0.0/30 is directly connected, eth0
B 172.16.0.4/30 [20/1] via 172.16.0.6 inactive, 6d18h36m
C>* 172.16.0.4/30 is directly connected, eth1
B 172.16.0.8/30 [20/1] via 172.16.0.10 inactive, 6d18h36m
C>* 172.16.0.8/30 is directly connected, eth2
B>* 172.17.0.0/30 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.17.0.4/30 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.17.0.8/30 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.18.0.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 172.18.11.0/24 [20/1] via 172.16.0.6, eth1, 6d18h36m
* via 172.16.0.10, eth2, 6d18h36m
B>* 172.18.12.0/24 [20/1] via 172.16.0.6, eth1, 6d18h36m
* via 172.16.0.10, eth2, 6d18h36m
B>* 172.18.13.0/24 [20/1] via 172.16.0.6, eth1, 6d18h36m
* via 172.16.0.10, eth2, 6d18h36m
B>* 172.18.14.0/24 [20/1] via 172.16.0.6, eth1, 6d18h36m
* via 172.16.0.10, eth2, 6d18h36m
B>* 172.18.15.0/24 [20/1] via 172.16.0.6, eth1, 6d18h36m
* via 172.16.0.10, eth2, 6d18h36m
B>* 172.18.21.0/24 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.18.22.0/24 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.18.23.0/24 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.18.24.0/24 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.18.25.0/24 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.18.31.0/24 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.18.32.0/24 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.18.33.0/24 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.18.34.0/24 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.18.35.0/24 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.18.41.0/24 [20/47] via 172.16.0.1, eth0, 1d02h30m
B>* 172.19.0.0/30 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.19.0.4/30 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.19.0.8/30 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.20.0.0/30 [20/46] via 172.16.0.1, eth0, 1d02h30m
B>* 172.32.255.2/32 [20/4] via 172.16.0.1, eth0, 06:35:33
B>* 172.32.255.3/32 [20/0] via 172.16.0.1, eth0, 06:34:39
B>* 172.32.255.4/32 [20/46] via 172.16.0.1, eth0, 06:33:57
B>* 172.32.255.5/32 [20/4] via 172.16.0.1, eth0, 06:33:42
2021-08-24 16:11:29,238: physical_device.py: 96 INFO : Command show ip route | no-more Result Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
I - ISIS, B - BGP, > - selected route, * - FIB route
B>* 0.0.0.0/0 [20/0] via 172.16.0.1, eth0, 6d18h35m
S 0.0.0.0/0 [125/0] via 172.16.0.1, eth0
B>* 1.2.3.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 4.5.6.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 7.8.9.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.10.10.10/32 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.0.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.1.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.10.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.11.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.12.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.13.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.20.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.21.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.30.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.16.31.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.17.0.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.17.1.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.17.11.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.17.12.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.28.10.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.28.13.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.28.14.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.28.15.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.192.80.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.192.81.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 10.192.82.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 13.13.13.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
C>* 127.0.0.0/8 is directly connected, lo
B>* 169.254.129.1/32 [20/0] via 172.16.0.1, eth0, 06:34:39
B 172.16.0.0/30 [20/0] via 172.16.0.1 inactive, 6d18h35m
C>* 172.16.0.0/30 is directly connected, eth0
B 172.16.0.4/30 [20/1] via 172.16.0.6 inactive, 6d18h36m
C>* 172.16.0.4/30 is directly connected, eth1
B 172.16.0.8/30 [20/1] via 172.16.0.10 inactive, 6d18h36m
C>* 172.16.0.8/30 is directly connected, eth2
B>* 172.17.0.0/30 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.17.0.4/30 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.17.0.8/30 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.18.0.0/24 [20/4] via 172.16.0.1, eth0, 1d02h30m
B>* 172.18.11.0/24 [20/1] via 172.16.0.6, eth1, 6d18h36m
* via 172.16.0.10, eth2, 6d18h36m
B>* 172.18.12.0/24 [20/1] via 172.16.0.6, eth1, 6d18h36m
* via 172.16.0.10, eth2, 6d18h36m
B>* 172.18.13.0/24 [20/1] via 172.16.0.6, eth1, 6d18h36m
* via 172.16.0.10, eth2, 6d18h36m
B>* 172.18.14.0/24 [20/1] via 172.16.0.6, eth1, 6d18h36m
* via 172.16.0.10, eth2, 6d18h36m
B>* 172.18.15.0/24 [20/1] via 172.16.0.6, eth1, 6d18h36m
* via 172.16.0.10, eth2, 6d18h36m
B>* 172.18.21.0/24 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.18.22.0/24 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.18.23.0/24 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.18.24.0/24 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.18.25.0/24 [20/46] via 172.16.0.1, eth0, 11:02:33
B>* 172.18.31.0/24 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.18.32.0/24 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.18.33.0/24 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.18.34.0/24 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.18.35.0/24 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.18.41.0/24 [20/47] via 172.16.0.1, eth0, 1d02h30m
B>* 172.19.0.0/30 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.19.0.4/30 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.19.0.8/30 [20/4] via 172.16.0.1, eth0, 23:06:07
B>* 172.20.0.0/30 [20/46] via 172.16.0.1, eth0, 1d02h30m
B>* 172.32.255.2/32 [20/4] via 172.16.0.1, eth0, 06:35:33
B>* 172.32.255.3/32 [20/0] via 172.16.0.1, eth0, 06:34:39
B>* 172.32.255.4/32 [20/46] via 172.16.0.1, eth0, 06:33:57
B>* 172.32.255.5/32 [20/4] via 172.16.0.1, eth0, 06:33:42
2021-08-24 16:11:29,238: physical_device.py: 103 ERROR : Error occurred while executing command : Empty module name
Traceback (most recent call last):
File "./network_insight_sdk_generic_datasources/main.py", line 59, in <module>
main()
File "./network_insight_sdk_generic_datasources/main.py", line 52, in main
physical_device.process()
File "/home/jyanagi/api/network-insight-sdk-generic-datasources/network_insight_sdk_generic_datasources/common/physical_device.py", line 48, in process
self.execute_commands()
File "/home/jyanagi/api/network-insight-sdk-generic-datasources/network_insight_sdk_generic_datasources/common/physical_device.py", line 104, in execute_commands
raise e
File "/home/jyanagi/api/network-insight-sdk-generic-datasources/network_insight_sdk_generic_datasources/common/physical_device.py", line 97, in execute_commands
table = self.parse_command_output(workload, command_result)
File "/home/jyanagi/api/network-insight-sdk-generic-datasources/network_insight_sdk_generic_datasources/common/physical_device.py", line 116, in parse_command_output
block_parser = import_utilities.load_class(cmd[BLOCK_PARSER_KEY][NAME_KEY])()
File "/home/jyanagi/api/network-insight-sdk-generic-datasources/network_insight_sdk_generic_datasources/common/import_module_utilities.py", line 9, in load_class
module = importlib.import_module(".".join(class_path.split('.')[:-1]))
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1011, in _gcd_import
File "<frozen importlib._bootstrap>", line 950, in _sanity_check
ValueError: Empty module name
jyanagi@apiserver:~/api/network-insight-sdk-generic-datasources$