From 662bae181cdff07a2472d7121d18ae37d380e062 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 7 Jan 2023 09:07:10 +0100 Subject: xml: T1579: merge generic-description.xml.i and interface/description.xml.i No need to have two distinct include blocks as one superseeds the other. Also this makes the entire behavior of "description" CLI node simpler. --- interface-definitions/include/generic-description.xml.i | 3 ++- interface-definitions/include/interface/description.xml.i | 11 ----------- interface-definitions/include/interface/vif-s.xml.i | 4 ++-- interface-definitions/include/interface/vif.xml.i | 2 +- 4 files changed, 5 insertions(+), 15 deletions(-) delete mode 100644 interface-definitions/include/interface/description.xml.i (limited to 'interface-definitions/include') diff --git a/interface-definitions/include/generic-description.xml.i b/interface-definitions/include/generic-description.xml.i index b54897be4..b030c2495 100644 --- a/interface-definitions/include/generic-description.xml.i +++ b/interface-definitions/include/generic-description.xml.i @@ -7,8 +7,9 @@ Description - [a-zA-Z0-9_\-\s]+ + [[:ascii:]]{1,256} + Description too long (limit 256 characters) diff --git a/interface-definitions/include/interface/description.xml.i b/interface-definitions/include/interface/description.xml.i deleted file mode 100644 index de01d22ca..000000000 --- a/interface-definitions/include/interface/description.xml.i +++ /dev/null @@ -1,11 +0,0 @@ - - - - Interface specific description - - .{1,256} - - Description too long (limit 256 characters) - - - diff --git a/interface-definitions/include/interface/vif-s.xml.i b/interface-definitions/include/interface/vif-s.xml.i index 6d50d7238..fdd62b63d 100644 --- a/interface-definitions/include/interface/vif-s.xml.i +++ b/interface-definitions/include/interface/vif-s.xml.i @@ -12,8 +12,8 @@ VLAN ID must be between 0 and 4094 + #include #include - #include #include #include #include @@ -53,8 +53,8 @@ VLAN ID must be between 0 and 4094 + #include #include - #include #include #include #include diff --git a/interface-definitions/include/interface/vif.xml.i b/interface-definitions/include/interface/vif.xml.i index 3f8f113ea..ec3921bf6 100644 --- a/interface-definitions/include/interface/vif.xml.i +++ b/interface-definitions/include/interface/vif.xml.i @@ -12,8 +12,8 @@ VLAN ID must be between 0 and 4094 + #include #include - #include #include #include #include -- cgit v1.2.3