From ebece7a4cdb942ea1ff7582ceda0f8765c329c9b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 15 Apr 2021 09:02:23 +0200 Subject: policy: T2425: re-implement "policy" tree from vyatta-cfg-quagga in XML/Python --- .../include/policy-list-action.xml.i | 21 --------------------- .../include/policy-list-description.xml.i | 11 ----------- .../include/policy-list-rule-description.xml.i | 11 ----------- interface-definitions/include/policy/action.xml.i | 21 +++++++++++++++++++++ .../include/policy/description.xml.i | 11 +++++++++++ interface-definitions/include/policy/host.xml.i | 14 ++++++++++++++ .../include/policy/inverse-mask.xml.i | 14 ++++++++++++++ interface-definitions/include/policy/network.xml.i | 14 ++++++++++++++ 8 files changed, 74 insertions(+), 43 deletions(-) delete mode 100644 interface-definitions/include/policy-list-action.xml.i delete mode 100644 interface-definitions/include/policy-list-description.xml.i delete mode 100644 interface-definitions/include/policy-list-rule-description.xml.i create mode 100644 interface-definitions/include/policy/action.xml.i create mode 100644 interface-definitions/include/policy/description.xml.i create mode 100644 interface-definitions/include/policy/host.xml.i create mode 100644 interface-definitions/include/policy/inverse-mask.xml.i create mode 100644 interface-definitions/include/policy/network.xml.i (limited to 'interface-definitions/include') diff --git a/interface-definitions/include/policy-list-action.xml.i b/interface-definitions/include/policy-list-action.xml.i deleted file mode 100644 index fddbd5a98..000000000 --- a/interface-definitions/include/policy-list-action.xml.i +++ /dev/null @@ -1,21 +0,0 @@ - - - - Action to take on entries matching this rule [REQUIRED] - - permit deny - - - permit - Permit matching entries - - - deny - Deny matching entries - - - ^(permit|deny)$ - - - - diff --git a/interface-definitions/include/policy-list-description.xml.i b/interface-definitions/include/policy-list-description.xml.i deleted file mode 100644 index a50278729..000000000 --- a/interface-definitions/include/policy-list-description.xml.i +++ /dev/null @@ -1,11 +0,0 @@ - - - - Description for this policy - - txt - Description for this policy - - - - diff --git a/interface-definitions/include/policy-list-rule-description.xml.i b/interface-definitions/include/policy-list-rule-description.xml.i deleted file mode 100644 index e22fb7c28..000000000 --- a/interface-definitions/include/policy-list-rule-description.xml.i +++ /dev/null @@ -1,11 +0,0 @@ - - - - Description for this rule - - txt - Description for this rule - - - - diff --git a/interface-definitions/include/policy/action.xml.i b/interface-definitions/include/policy/action.xml.i new file mode 100644 index 000000000..fddbd5a98 --- /dev/null +++ b/interface-definitions/include/policy/action.xml.i @@ -0,0 +1,21 @@ + + + + Action to take on entries matching this rule [REQUIRED] + + permit deny + + + permit + Permit matching entries + + + deny + Deny matching entries + + + ^(permit|deny)$ + + + + diff --git a/interface-definitions/include/policy/description.xml.i b/interface-definitions/include/policy/description.xml.i new file mode 100644 index 000000000..15a77cd66 --- /dev/null +++ b/interface-definitions/include/policy/description.xml.i @@ -0,0 +1,11 @@ + + + + Description + + txt + Description + + + + diff --git a/interface-definitions/include/policy/host.xml.i b/interface-definitions/include/policy/host.xml.i new file mode 100644 index 000000000..ac017c630 --- /dev/null +++ b/interface-definitions/include/policy/host.xml.i @@ -0,0 +1,14 @@ + + + + Single host IP address to match + + ipv4 + Host address to match + + + + + + + diff --git a/interface-definitions/include/policy/inverse-mask.xml.i b/interface-definitions/include/policy/inverse-mask.xml.i new file mode 100644 index 000000000..cec69a81b --- /dev/null +++ b/interface-definitions/include/policy/inverse-mask.xml.i @@ -0,0 +1,14 @@ + + + + Network/netmask to match (requires network be defined) + + ipv4 + Inverse-mask to match + + + + + + + diff --git a/interface-definitions/include/policy/network.xml.i b/interface-definitions/include/policy/network.xml.i new file mode 100644 index 000000000..f2aea6be8 --- /dev/null +++ b/interface-definitions/include/policy/network.xml.i @@ -0,0 +1,14 @@ + + + + Network/netmask to match (requires inverse-mask be defined) + + ipv4net + Inverse-mask to match + + + + + + + -- cgit v1.2.3