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 --- 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 ++++++++++++++ 5 files changed, 74 insertions(+) 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/policy') 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