diff options
author | Christian Breunig <christian@breunig.cc> | 2024-09-12 05:27:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-12 05:27:29 +0000 |
commit | dc7abeb08f4bfe9bd1b3106ba45692c7490d20a6 (patch) | |
tree | 92bcae06233c5b1b1cb3f1f9661eacd5a99c5413 /op-mode-definitions/telnet.xml.in | |
parent | 4d2d4311f12c7466edc904be41ec4e716021e791 (diff) | |
parent | 65622a733df80ecee2192f3cd5758a27e4324b3b (diff) | |
download | vyos-1x-dc7abeb08f4bfe9bd1b3106ba45692c7490d20a6.tar.gz vyos-1x-dc7abeb08f4bfe9bd1b3106ba45692c7490d20a6.zip |
Merge pull request #4042 from natali-rs1985/T6694-current
op-mode: T6694: Move some op-mode commands to the "execute" family
Diffstat (limited to 'op-mode-definitions/telnet.xml.in')
-rw-r--r-- | op-mode-definitions/telnet.xml.in | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/op-mode-definitions/telnet.xml.in b/op-mode-definitions/telnet.xml.in index c5bb6d283..2cacc6a26 100644 --- a/op-mode-definitions/telnet.xml.in +++ b/op-mode-definitions/telnet.xml.in @@ -1,30 +1,35 @@ <?xml version="1.0"?> <interfaceDefinition> - <node name="telnet"> - <properties> - <help>Telnet to a node</help> - </properties> + <node name="execute"> <children> - <tagNode name="to"> + <node name="telnet"> <properties> - <help>Telnet to a host</help> - <completionHelp> - <list><hostname> <x.x.x.x> <h:h:h:h:h:h:h:h></list> - </completionHelp> + <help>Telnet to a node</help> </properties> - <command>/usr/bin/telnet $3</command> <children> - <tagNode name="port"> + <tagNode name="to"> <properties> - <help>Telnet to a host:port</help> + <help>Telnet to a host</help> <completionHelp> - <list><0-65535></list> + <list><hostname> <x.x.x.x> <h:h:h:h:h:h:h:h></list> </completionHelp> </properties> - <command>/usr/bin/telnet $3 $5</command> + <command>/usr/bin/telnet $4</command> + <children> + <tagNode name="port"> + <properties> + <help>Telnet to a host:port</help> + <completionHelp> + <list><0-65535></list> + </completionHelp> + </properties> + <command>/usr/bin/telnet $4 $6</command> + </tagNode> + </children> </tagNode> </children> - </tagNode> + </node> </children> </node> </interfaceDefinition> + |