summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan B. Rodriguez <jbrodriguez@gmail.com>2018-03-03 11:53:07 -0500
committerJuan B. Rodriguez <jbrodriguez@gmail.com>2018-03-03 11:53:07 -0500
commitd0e39f690f73135a2d7075a445719a20e8cf017c (patch)
tree8896ff63a61b40412a974d380ee7baa8ef8229ae
parentf2c8117e8d63fd5e99a9fe4a049c688e4dac553e (diff)
downloadvyos-1x-d0e39f690f73135a2d7075a445719a20e8cf017c.tar.gz
vyos-1x-d0e39f690f73135a2d7075a445719a20e8cf017c.zip
Add host-name interface definition
-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..3d9c9d6c9
--- /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>Hostname settings</help>
+ </properties>
+ <children>
+ <leafNode name="hostname">
+ <properties>
+ <help>server's hostname </help>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition> \ No newline at end of file