diff --git a/tests/fixtures/huawei/config.conf b/tests/fixtures/huawei/config.conf new file mode 100644 index 0000000..990fb8f --- /dev/null +++ b/tests/fixtures/huawei/config.conf @@ -0,0 +1,38 @@ +# Huawei Versatile Routing Platform Software +# VRP (R) software, Version 5.170 (S5731 V200R019C00SPC500) +# Copyright (C) 2000-2019 HUAWEI TECH Co., Ltd. +# +# DDR Memory Size : 4096 M bytes +# FLASH Total Memory Size : 1024 M bytes +# FLASH Available Memory Size : 739 M bytes +# Pcb Version : VER.B +# BootROM Version : 0000.04e4 +# BootLoad Version : 0213.0000 +# CPLD Version : 0104 +# Software Version : VRP (R) Software, Version 5.170 (V200R019C00SPC500) +# FLASH Version : 0000.0000 +# PWR1 information +# Pcb Version : PWR VER.D +# PWR2 information +# Pcb Version : PWR VER.D +# FAN1 information +# Pcb Version : NA +# FAN2 information +# Pcb Version : NA +# ESN of slot 1: 102266666666 +# ESN of slot 2: 102288888888 +interface GigabitEthernet0/0/33 + port link-type access + port default vlan 101 + loopback-detect enable + stp disable + storm-control broadcast min-rate 1500 max-rate 2500 + storm-control multicast min-rate 1000 max-rate 2000 + storm-control action error-down +# +interface Vlanif120 + description SSH + ip address 10.26.196.254 255.255.255.0 +# +vlan batch 13 26 101 to 103 110 120 130 201 to 204 209 to 212 350 360 +# \ No newline at end of file diff --git a/tests/fixtures/huawei/config.expected.json b/tests/fixtures/huawei/config.expected.json new file mode 100644 index 0000000..39280d0 --- /dev/null +++ b/tests/fixtures/huawei/config.expected.json @@ -0,0 +1,95 @@ +{ + "system": { + "model": "S5731", + "serial_number": "102266666666", + "version": "5.170" + }, + "interfaces": [ + { + "interface": "GigabitEthernet0/0/33", + "ip_address": null, + "mask": null, + "description": null + }, + { + "interface": "Vlanif120", + "ip_address": "10.26.196.254", + "mask": 24, + "description": "SSH" + } + ], + "vlans": [ + { + "vlan_id": 13, + "description": null + }, + { + "vlan_id": 26, + "description": null + }, + { + "vlan_id": 101, + "description": null + }, + { + "vlan_id": 102, + "description": null + }, + { + "vlan_id": 103, + "description": null + }, + { + "vlan_id": 110, + "description": null + }, + { + "vlan_id": 120, + "description": null + }, + { + "vlan_id": 130, + "description": null + }, + { + "vlan_id": 201, + "description": null + }, + { + "vlan_id": 202, + "description": null + }, + { + "vlan_id": 203, + "description": null + }, + { + "vlan_id": 204, + "description": null + }, + { + "vlan_id": 209, + "description": null + }, + { + "vlan_id": 210, + "description": null + }, + { + "vlan_id": 211, + "description": null + }, + { + "vlan_id": 212, + "description": null + }, + { + "vlan_id": 350, + "description": null + }, + { + "vlan_id": 360, + "description": null + } + ] +} \ No newline at end of file