diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-27 09:48:03 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-27 10:32:42 +0000 |
commit | 1cbebfd6a35ee67c0126e2d7410d68597f00cb1e (patch) | |
tree | f19fe89c18901e5d9bcf7afeddec074ae95ed4c5 /tools/pyang_plugins/bgpyang2golang.py | |
parent | f99362e876873ebab5bcfa8a9e88e65200a9bac1 (diff) |
config: don't take into account State struct in Equal()
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools/pyang_plugins/bgpyang2golang.py')
-rw-r--r-- | tools/pyang_plugins/bgpyang2golang.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pyang_plugins/bgpyang2golang.py b/tools/pyang_plugins/bgpyang2golang.py index 1f6ee7d0..ebe1de8d 100644 --- a/tools/pyang_plugins/bgpyang2golang.py +++ b/tools/pyang_plugins/bgpyang2golang.py @@ -284,6 +284,8 @@ def emit_class_def(ctx, yang_statement, struct_name, prefix): print >> o, '}' for val_name, type_name, typ, elem in equal_elems: + if val_name == 'State': + continue if typ == EQUAL_TYPE_LEAF: print >> o, 'if lhs.{0} != rhs.{0} {{'.format(val_name) print >> o, 'return false' |