diff options
author | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-11-12 10:12:12 +0000 |
---|---|---|
committer | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-11-14 02:15:47 +0000 |
commit | 1e22e529c92fe7b2e1576ceea96d827f16a76654 (patch) | |
tree | 587c27db5caad26185ff6e0c0aff126b21fe1b2d /tools | |
parent | c4ced97e76f12d5c37721c107e61147edb4254d7 (diff) |
config/api: create admin-state type
align with session-state
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pyang_plugins/gobgp.yang | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index 06b545af..25672ad4 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -672,7 +672,17 @@ module gobgp { } leaf admin-state { - type string; + type enumeration { + enum UP { + description "admin state is up"; + } + enum DOWN { + description "admin state is down"; + } + enum PFX_CT { + description "prefix counter over limit"; + } + } } leaf established-count { |