From ddb2f0660239bcf201285c79bb7ce7568046c230 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Thu, 22 Mar 2018 10:49:59 +0100 Subject: nat: fix issues found by pyang Change-Id: Ic4375e85684a035323499963172e59042b0f3dcf Signed-off-by: Marek Gradzki --- .../src/main/yang/interface-nat@2017-08-16.yang | 23 ++++++++++------------ 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'nat/nat-api/src/main/yang/interface-nat@2017-08-16.yang') diff --git a/nat/nat-api/src/main/yang/interface-nat@2017-08-16.yang b/nat/nat-api/src/main/yang/interface-nat@2017-08-16.yang index 421d03944..d8791c3a4 100644 --- a/nat/nat-api/src/main/yang/interface-nat@2017-08-16.yang +++ b/nat/nat-api/src/main/yang/interface-nat@2017-08-16.yang @@ -3,6 +3,15 @@ module interface-nat { namespace "urn:opendaylight:params:xml:ns:yang:interface:nat"; prefix "ifc-nat"; + import ietf-interfaces { + prefix "if"; + } + import yang-ext { + prefix "ext"; + } + + description "Augmentations to interfaces model to connect interfaces with nat configuration."; + revision "2017-08-16" { description "Added support for NAT64."; } @@ -15,25 +24,13 @@ module interface-nat { description "Initial revision of interface-nat model."; } - import ietf-interfaces { - prefix "if"; - } - import ietf-nat { - prefix "nat"; - } - import yang-ext { - prefix "ext"; - } - - description "Augmentations to interfaces model to connect interfaces with nat configuration."; - grouping interface-nat-vpp-feature-attributes { leaf post-routing { type boolean; default false; description "Indicates whether NAT translation should be applied after routing. - If true, nat_interface_add_del_output_feature message is used to enable NAT. + If true, nat_interface_anatdd_del_output_feature message is used to enable NAT. By default nat_interface_add_del_feature is used."; reference "https://git.fd.io/vpp/tree/src/plugins/nat/nat.api"; -- cgit 1.2.3-korg