summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-16 10:46:03 +0700
committerGitHub <noreply@github.com>2018-05-16 10:46:03 +0700
commit97213f4c2e765202f32d99eec880fa69b252a01d (patch)
tree4f59c0009a1285586bce4642179e034d3ee47dd0 /interface-definitions
parent64caf155434202abfda5909f07f5446124d5e970 (diff)
parent3e3c18c8120bdd41793aefa0f6added6f46b5522 (diff)
downloadvyos-1x-97213f4c2e765202f32d99eec880fa69b252a01d.tar.gz
vyos-1x-97213f4c2e765202f32d99eec880fa69b252a01d.zip
Merge pull request #8 from jbrodriguez/id/hostname
T574: Add new style scripts and definitions for system host-name
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/host-name.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/interface-definitions/host-name.xml b/interface-definitions/host-name.xml
new file mode 100644
index 000000000..1452a956a
--- /dev/null
+++ b/interface-definitions/host-name.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+
+<!-- host-name configuration -->
+
+<interfaceDefinition>
+ <node name="system">
+ <children>
+ <node name="host-name" owner="${vyos_sbindir}/vyos-config-host-name.py">
+ <properties>
+ <help>System host name (default: vyos)</help>
+ </properties>
+ <children>
+ <leafNode name="hostname">
+ <properties>
+ <help>System host name (default: vyos)</help>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition> \ No newline at end of file