Files
oxipy/tests/fixtures/keenetic/config.expected.json
IluaAir a521c60d76 Add shutdown attribute to Interfaces class and update related templates
- Added a `shutdown` boolean attribute to the `Interfaces` class to manage interface states.
- Updated the `eltex.ttp` template to include the `shutdown` command based on the new attribute.
- Modified expected configuration JSON files for various devices to reflect the new `shutdown` attribute, ensuring accurate testing and validation of interface configurations.
2026-07-15 00:47:10 +03:00

184 lines
3.8 KiB
JSON

{
"system": {
"model": "Sprinter (KN-3710)",
"serial_number": "7777777",
"version": "4.03.C.6.2-7"
},
"interfaces": [
{
"interface": "GigabitEthernet0",
"shutdown": false,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "GigabitEthernet0/1",
"shutdown": false,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "GigabitEthernet0/2",
"shutdown": false,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "GigabitEthernet0/3",
"shutdown": false,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "GigabitEthernet0/0",
"shutdown": false,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "WifiMaster0",
"shutdown": false,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "WifiMaster0/AccessPoint0",
"shutdown": false,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "WifiMaster0/AccessPoint1",
"shutdown": true,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "WifiMaster0/AccessPoint2",
"shutdown": true,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "WifiMaster0/WifiStation0",
"shutdown": true,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "WifiMaster1",
"shutdown": false,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "WifiMaster1/AccessPoint0",
"shutdown": false,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "WifiMaster1/AccessPoint1",
"shutdown": true,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "WifiMaster1/AccessPoint2",
"shutdown": true,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "WifiMaster1/WifiStation0",
"shutdown": true,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "Bridge0",
"shutdown": false,
"ip_address": "17.36.1.1",
"mask": 24,
"description": "Home network"
},
{
"interface": "Bridge1",
"shutdown": true,
"ip_address": "10.1.30.1",
"mask": 24,
"description": "Guest network"
},
{
"interface": "Bridge2",
"shutdown": false,
"ip_address": null,
"mask": null,
"description": null
},
{
"interface": "OpenVPN0",
"shutdown": false,
"ip_address": null,
"mask": null,
"description": "test_HW-udp"
},
{
"interface": "OpenVPN2",
"shutdown": true,
"ip_address": null,
"mask": null,
"description": "test_HW-tcp"
},
{
"interface": "Wireguard0",
"shutdown": false,
"ip_address": "10.3.100.1",
"mask": 24,
"description": "test_HW"
},
{
"interface": "Wireguard1",
"shutdown": false,
"ip_address": "10.1.100.1",
"mask": 24,
"description": "test_HW"
},
{
"interface": "Wireguard2",
"shutdown": false,
"ip_address": "10.2.100.1",
"mask": 24,
"description": "test_HW"
}
],
"vlans": [
{
"vlan_id": 1,
"description": "Home VLAN"
},
{
"vlan_id": 2,
"description": "Подключение Ethernet"
},
{
"vlan_id": 3,
"description": "Home network"
}
]
}