summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-08-02 19:34:34 +0200
committerChristian Poessinger <christian@poessinger.com>2020-08-02 19:34:37 +0200
commit9f67250480d1e6727424d00212d69f008ffdb647 (patch)
treeebf2d5be4f3c29ada9efe8bd299957b36d1309cb /op-mode-definitions
parentf583fa94ba00d4c29abe997d316a381c98cc65bf (diff)
downloadvyos-1x-9f67250480d1e6727424d00212d69f008ffdb647.tar.gz
vyos-1x-9f67250480d1e6727424d00212d69f008ffdb647.zip
op-mode: console-server: T2490: cleanup XML
Move the connect part to connect-disconnect.xml
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/connect-disconnect.xml11
-rw-r--r--op-mode-definitions/show-console-server.xml13
2 files changed, 10 insertions, 14 deletions
diff --git a/op-mode-definitions/connect-disconnect.xml b/op-mode-definitions/connect-disconnect.xml
index f0fcef5da..ea2883e0b 100644
--- a/op-mode-definitions/connect-disconnect.xml
+++ b/op-mode-definitions/connect-disconnect.xml
@@ -2,9 +2,18 @@
<interfaceDefinition>
<node name="connect">
<properties>
- <help>Establish a connection</help>
+ <help>Establish connection</help>
</properties>
<children>
+ <tagNode name="console">
+ <properties>
+ <help>Connect to device attached to serial console server</help>
+ <completionHelp>
+ <path>service console-server device</path>
+ </completionHelp>
+ </properties>
+ <command>/usr/bin/console "$3"</command>
+ </tagNode>
<tagNode name="interface">
<properties>
<help>Bring up a connection-oriented network interface</help>
diff --git a/op-mode-definitions/show-console-server.xml b/op-mode-definitions/show-console-server.xml
index e47b6cfaa..77a7f3376 100644
--- a/op-mode-definitions/show-console-server.xml
+++ b/op-mode-definitions/show-console-server.xml
@@ -1,18 +1,5 @@
<?xml version="1.0"?>
<interfaceDefinition>
- <node name="connect">
- <children>
- <tagNode name="console">
- <properties>
- <help>Connect to device attached to serial console server</help>
- <completionHelp>
- <path>service console-server device</path>
- </completionHelp>
- </properties>
- <command>/usr/bin/console "$3"</command>
- </tagNode>
- </children>
- </node>
<node name="show">
<children>
<node name="log">