From a97085b38443361cb830c7c4127e9a5d69d7f055 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Thu, 22 Mar 2018 08:17:05 +0100 Subject: lisp: fix issues found by pyang Change-Id: Ia48f32dca30e74c3d132556a85e38d70802f6c83 Signed-off-by: Marek Gradzki --- .../yang/adjacencies-identification-context@2016-08-01.yang | 10 ++++------ lisp/api/src/main/yang/eid-mapping-context@2016-08-01.yang | 6 +++--- .../main/yang/gpe-entry-identification-context@2017-05-17.yang | 9 ++++----- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/lisp/api/src/main/yang/adjacencies-identification-context@2016-08-01.yang b/lisp/api/src/main/yang/adjacencies-identification-context@2016-08-01.yang index ae05f83f5..ed6315a4a 100644 --- a/lisp/api/src/main/yang/adjacencies-identification-context@2016-08-01.yang +++ b/lisp/api/src/main/yang/adjacencies-identification-context@2016-08-01.yang @@ -3,6 +3,10 @@ module adjacencies-identification-context { namespace "urn:honeycomb:params:xml:ns:yang:adjacencies:identification:context"; prefix "adjacencies-identification-context"; + import lisp {prefix "lisp";} + import yang-ext {prefix "ext";} + import naming-context { prefix "nc";} + description "This module contains mappings between adjacency identificator and actual unique combination of remote and local eid in vpp"; @@ -11,12 +15,6 @@ module adjacencies-identification-context { description "Initial revision."; } - - import lisp {prefix "lisp";} - import ietf-lisp-address-types {prefix "lisp-types";} - import yang-ext {prefix "ext";} - import naming-context { prefix "nc";} - grouping adjacencies-identification-context-attributes{ container adjacencies-identification-contexts { diff --git a/lisp/api/src/main/yang/eid-mapping-context@2016-08-01.yang b/lisp/api/src/main/yang/eid-mapping-context@2016-08-01.yang index 3fb6d893a..8ce12385d 100644 --- a/lisp/api/src/main/yang/eid-mapping-context@2016-08-01.yang +++ b/lisp/api/src/main/yang/eid-mapping-context@2016-08-01.yang @@ -3,6 +3,9 @@ module eid-mapping-context { namespace "urn:honeycomb:params:xml:ns:yang:eid:mapping:context"; prefix "eid-mapping-context"; + import lisp {prefix "lisp";} + import ietf-lisp-address-types {prefix "lisp-types";} + description "This module contains mappings stored for local-mappings id to actual eid"; @@ -11,9 +14,6 @@ module eid-mapping-context { "Initial revision."; } - import lisp {prefix "lisp";} - import ietf-lisp-address-types {prefix "lisp-types";} - container contexts { list eid-mapping-context { diff --git a/lisp/api/src/main/yang/gpe-entry-identification-context@2017-05-17.yang b/lisp/api/src/main/yang/gpe-entry-identification-context@2017-05-17.yang index 8f4d8aceb..7c8e40eb5 100644 --- a/lisp/api/src/main/yang/gpe-entry-identification-context@2017-05-17.yang +++ b/lisp/api/src/main/yang/gpe-entry-identification-context@2017-05-17.yang @@ -3,6 +3,10 @@ module gpe-entry-identification-context { namespace "urn:honeycomb:params:xml:ns:yang:gpe:entry:identification:context"; prefix "gpe-entry-identification-context"; + import ietf-lisp-address-types {prefix "lisp-types";} + import yang-ext {prefix "ext";} + import naming-context { prefix "nc";} + description "This module contains mappings between gpe entry identificator and actual unique combination of remote/local eid and vni in vpp"; @@ -12,11 +16,6 @@ module gpe-entry-identification-context { "Initial revision."; } - import lisp {prefix "lisp";} - import ietf-lisp-address-types {prefix "lisp-types";} - import yang-ext {prefix "ext";} - import naming-context { prefix "nc";} - grouping gpe-entry-identification-context-attributes{ container gpe-entry-identification-contexts { -- cgit 1.2.3-korg