From 7d01f7fec95f65705ec886f4de8bce21e0bfee07 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 16 May 2020 22:20:43 +0200 Subject: nat: nptv6: T2198: add XML/Python skeleton - define XML CLI interface - read CLI into Python dict --- .../include/nat-outbound-interface.xml.i | 8 +++ interface-definitions/nat.xml.in | 81 +++++++++++++++++++--- 2 files changed, 81 insertions(+), 8 deletions(-) create mode 100644 interface-definitions/include/nat-outbound-interface.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/nat-outbound-interface.xml.i b/interface-definitions/include/nat-outbound-interface.xml.i new file mode 100644 index 000000000..d562f7f03 --- /dev/null +++ b/interface-definitions/include/nat-outbound-interface.xml.i @@ -0,0 +1,8 @@ + + + Outbound interface of NAT traffic + + + + + diff --git a/interface-definitions/nat.xml.in b/interface-definitions/nat.xml.in index af9dd1eff..a0b3b815b 100644 --- a/interface-definitions/nat.xml.in +++ b/interface-definitions/nat.xml.in @@ -52,22 +52,87 @@ - + - Source NAT settings + IPv6-to-IPv6 Network Prefix Translation Settings - #include + + NPTv6 rule number + + 1-9999 + Number for this rule + + + + + NAT rule number must be between 1 and 9999 + - + - Outbound interface of NAT traffic - - - + Rule description + + + Disable NAT rule + + + + #include + + + IPv6 source prefix options + + + + + IPv6 prefix to be translated + + ipv6net + IPv6 prefix + + + + + + + + + + + Translated IPv6 prefix options + + + + + IPv6 prefix to translate to + + ipv6net + IPv6 prefix + + + + + + + + + + + + + + + Source NAT settings + + + #include + + + #include Outside NAT IP (source NAT only) -- cgit v1.2.3