sdepassio 4baf784e5e
feat(network::juniper::common::junos::netconf): New connector network juniper mseries netconf (#5613)
* Move network::juniper::common::junos plugins to network::juniper::common::junos::snmp

* New plugins network::juniper::common::junos::netconf::*

* fix network::juniper::common::junos::snmp::mode::interfaces bias_current to divise by 1000 instead of 100

Co-authored-by: garnier-quentin <garnier.quentin@gmail.com>
2025-06-10 18:03:22 +02:00

31 lines
1.3 KiB
Plaintext

*** Settings ***
Documentation Juniper Mseries Netconf List RSVP
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource
Suite Setup Ctn Generic Suite Setup
Test Timeout 120s
*** Variables ***
${CMD} ${CENTREON_PLUGINS} --plugin=network::juniper::mseries::netconf::plugin
... --mode=list-rsvp
... --hostname=${HOSTNAME}
... --sshcli-command=get_data
... --sshcli-path=${CURDIR}
... --sshcli-option="-f=${CURDIR}${/}data${/}rsvp.netconf"
*** Test Cases ***
List Rsvp ${tc}
[Tags] network juniper mseries netconf
${command} Catenate
... ${CMD}
... ${extraoptions}
Ctn Run Command And Check Result As Regexp ${command} ${expected_result}
Examples: tc extraoptions expected_result --
... 1 ${EMPTY} ^List RSVP sessions: (\\\\n\\\\[.*\\\\]){2}\\\\Z
... 2 --disco-show ^\\\\<\\\\?xml version="1.0" encoding="utf-8"\\\\?\\\\>\\\\n\\\\<data\\\\>(\\\\n\\\\s*\\\\<label .*\\\\/\\\\>){2}\\\\n\\\\<\\\\/data\\\\>$
... 3 --disco-format ^\\\\<\\\\?xml version="1.0" encoding="utf-8"\\\\?\\\\>\\\\n\\\\<data\\\\>(\\\\n\\\\s*\\\\<element\\\\>.*\\\\<\\\\/element\\\\>){5}\\\\n\\\\<\\\\/data\\\\>$