From 56a966f94b5c5bbe7f57b80316f3ba389534ad5f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 7 Nov 2021 16:48:00 +0100 Subject: xml: provide and use common interface-name building blocks --- interface-definitions/bcast-relay.xml.in | 10 +--------- interface-definitions/dhcp-relay.xml.in | 10 +--------- interface-definitions/flow-accounting-conf.xml.in | 10 +--------- .../include/generic-interface-broadcast.xml.i | 17 +++++++++++++++++ .../include/generic-interface-multi-broadcast.xml.i | 18 ++++++++++++++++++ .../include/generic-interface-multi.xml.i | 18 ++++++++++++++++++ interface-definitions/protocols-bfd.xml.in | 9 +-------- interface-definitions/protocols-mpls.xml.in | 20 ++------------------ interface-definitions/protocols-ospfv3.xml.in | 17 +---------------- interface-definitions/service_mdns-repeater.xml.in | 10 +--------- interface-definitions/vpn_ipsec.xml.in | 19 ++----------------- interface-definitions/vrrp.xml.in | 9 +-------- 12 files changed, 64 insertions(+), 103 deletions(-) create mode 100644 interface-definitions/include/generic-interface-broadcast.xml.i create mode 100644 interface-definitions/include/generic-interface-multi-broadcast.xml.i create mode 100644 interface-definitions/include/generic-interface-multi.xml.i diff --git a/interface-definitions/bcast-relay.xml.in b/interface-definitions/bcast-relay.xml.in index 3f781f07f..aeaa5ab37 100644 --- a/interface-definitions/bcast-relay.xml.in +++ b/interface-definitions/bcast-relay.xml.in @@ -39,15 +39,7 @@ Description - - - Interface to repeat UDP broadcasts to [REQUIRED] - - - - - - + #include #include diff --git a/interface-definitions/dhcp-relay.xml.in b/interface-definitions/dhcp-relay.xml.in index 0d485ef80..483e776a7 100644 --- a/interface-definitions/dhcp-relay.xml.in +++ b/interface-definitions/dhcp-relay.xml.in @@ -9,15 +9,7 @@ 910 - - - DHCP relay interface [REQUIRED] - - - - - - + #include Relay options diff --git a/interface-definitions/flow-accounting-conf.xml.in b/interface-definitions/flow-accounting-conf.xml.in index b0f308afd..113c1d849 100644 --- a/interface-definitions/flow-accounting-conf.xml.in +++ b/interface-definitions/flow-accounting-conf.xml.in @@ -136,15 +136,7 @@ - - - Interface for flow-accounting [REQUIRED] - - - - - - + #include NetFlow settings diff --git a/interface-definitions/include/generic-interface-broadcast.xml.i b/interface-definitions/include/generic-interface-broadcast.xml.i new file mode 100644 index 000000000..6f76dde1a --- /dev/null +++ b/interface-definitions/include/generic-interface-broadcast.xml.i @@ -0,0 +1,17 @@ + + + + Interface Name to use + + + + + txt + Interface name + + + + + + + diff --git a/interface-definitions/include/generic-interface-multi-broadcast.xml.i b/interface-definitions/include/generic-interface-multi-broadcast.xml.i new file mode 100644 index 000000000..00638f3b7 --- /dev/null +++ b/interface-definitions/include/generic-interface-multi-broadcast.xml.i @@ -0,0 +1,18 @@ + + + + Interface Name to use + + + + + txt + Interface name + + + + + + + + diff --git a/interface-definitions/include/generic-interface-multi.xml.i b/interface-definitions/include/generic-interface-multi.xml.i new file mode 100644 index 000000000..44e87775c --- /dev/null +++ b/interface-definitions/include/generic-interface-multi.xml.i @@ -0,0 +1,18 @@ + + + + Interface Name to use + + + + + txt + Interface name + + + + + + + + diff --git a/interface-definitions/protocols-bfd.xml.in b/interface-definitions/protocols-bfd.xml.in index cc3c3bf12..7b22b8125 100644 --- a/interface-definitions/protocols-bfd.xml.in +++ b/interface-definitions/protocols-bfd.xml.in @@ -43,14 +43,7 @@ Bind listener to specified interface/address, mandatory for IPv6 - - - Local interface to bind our peer listener to - - - - - + #include Local address to bind our peer listener to diff --git a/interface-definitions/protocols-mpls.xml.in b/interface-definitions/protocols-mpls.xml.in index e7646e625..be8e30c18 100644 --- a/interface-definitions/protocols-mpls.xml.in +++ b/interface-definitions/protocols-mpls.xml.in @@ -524,15 +524,7 @@ - - - Enable LDP and neighbor discovery on interface - - - - - - + #include @@ -560,15 +552,7 @@ - - - Enable MPLS packet processing on interface - - - - - - + #include diff --git a/interface-definitions/protocols-ospfv3.xml.in b/interface-definitions/protocols-ospfv3.xml.in index 99cfec661..fffeeb9a5 100644 --- a/interface-definitions/protocols-ospfv3.xml.in +++ b/interface-definitions/protocols-ospfv3.xml.in @@ -61,22 +61,7 @@ - - - Enable routing on an IPv6 interface - - - - - txt - Interface used for routing information exchange - - - - - - - + #include Specify IPv6 prefix (border routers only) diff --git a/interface-definitions/service_mdns-repeater.xml.in b/interface-definitions/service_mdns-repeater.xml.in index d02dac8a6..9a94f1488 100644 --- a/interface-definitions/service_mdns-repeater.xml.in +++ b/interface-definitions/service_mdns-repeater.xml.in @@ -14,15 +14,7 @@ #include - - - Interface to repeat mDNS advertisements [REQUIRED] - - - - - - + #include Disables mDNS repeater on VRRP interfaces not in MASTER state diff --git a/interface-definitions/vpn_ipsec.xml.in b/interface-definitions/vpn_ipsec.xml.in index 164ba6618..cfa456e42 100644 --- a/interface-definitions/vpn_ipsec.xml.in +++ b/interface-definitions/vpn_ipsec.xml.in @@ -498,15 +498,7 @@ Sets to include an additional secrets file for strongSwan. Use an absolute path to specify the included file. - - - Onterface used for IPsec communication - - - - - - + #include IPsec logging @@ -822,14 +814,7 @@ DHCP pool options for remote-access - - - Interface with DHCP server to use - - - - - + #include DHCP server address diff --git a/interface-definitions/vrrp.xml.in b/interface-definitions/vrrp.xml.in index 44a9a1f54..53d79caac 100644 --- a/interface-definitions/vrrp.xml.in +++ b/interface-definitions/vrrp.xml.in @@ -16,14 +16,7 @@ VRRP group - - - Network interface - - - - - + #include Advertise interval -- cgit v1.2.3