From d08f196a4d6cfca60d6ea2966dba2f97bb8e4ba3 Mon Sep 17 00:00:00 2001 From: meklis Date: Tue, 10 Sep 2024 23:15:19 +0300 Subject: [PATCH] Fix juniper --- configs/models/Juniper.yml | 6 +++++- src/Modules/BDcom/UniInterfacesVlans.php | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configs/models/Juniper.yml b/configs/models/Juniper.yml index 6ed4ab1b..d30ced48 100644 --- a/configs/models/Juniper.yml +++ b/configs/models/Juniper.yml @@ -8,7 +8,9 @@ models: - console detect: {description: Juniper.*qfx51, objid: ^.1.3.6.1.4.1.2636.1.1.1.4.82 } extra: - console_conn_type: alcatel + console_conn_type: junos + console_commands_after_connect: + - set cli screen-length 0 modules: parse_interface: \SwitcherCore\Modules\JuniperSwitch\ParseInterface # fdb: \SwitcherCore\Modules\JuniperSwitch\Fdb @@ -26,3 +28,5 @@ models: ctrl_port_state: \SwitcherCore\Modules\JuniperSwitch\StatePortControl console_command: \SwitcherCore\Modules\JuniperSwitch\RawConsoleCommand multi_console_command: \SwitcherCore\Modules\JuniperSwitch\MultiRawConsoleCommand + + diff --git a/src/Modules/BDcom/UniInterfacesVlans.php b/src/Modules/BDcom/UniInterfacesVlans.php index 80172e05..6fed8225 100644 --- a/src/Modules/BDcom/UniInterfacesVlans.php +++ b/src/Modules/BDcom/UniInterfacesVlans.php @@ -28,7 +28,6 @@ function getPrettyFiltered($filter = [], $fromCache = false) return parent::getPrettyFiltered($filter, $fromCache); // TODO: Change the autogenerated stub } - function getPretty() { $data = [];