Mass-convert all compontents to use -no-zone addresses
[bgpcep.git] / bmp / bmp-api / src / main / yang / odl-bmp-monitor-config.yang
1 module odl-bmp-monitor-config {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:bmp-monitor-config";
4     prefix bmp-monitor-config;
5
6     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
7     import rfc2385 { prefix rfc2385; revision-date 2016-03-24; }
8     import bmp-monitor { prefix bmp-monitor; revision-date 2018-03-29; }
9
10     description
11         "This module contains the base YANG definitions for
12          BMP Monitor Configuration.
13          Copyright (c) 2017 Pantheon Technologies s.r.o. and others.  All rights reserved.
14
15          This program and the accompanying materials are made available
16          under the terms of the Eclipse Public License v1.0 which
17          accompanies this distribution, and is available at
18          http://www.eclipse.org/legal/epl-v10.html";
19
20     revision "2018-03-29" {
21         description "Add support for add-path for all afi/safi.";
22     }
23
24     revision "2017-12-07" {
25         description "Add support for add-path in base BGP NLRI.";
26     }
27
28     revision "2017-05-17" {
29         description
30             "Initial revision.";
31     }
32
33     grouping server-config {
34         container server {
35             leaf binding-address {
36                 type inet:ip-address-no-zone;
37                 default "0.0.0.0";
38             }
39
40             leaf binding-port {
41                 type inet:port-number;
42                 mandatory true;
43             }
44         }
45     }
46
47     container odl-bmp-monitors {
48         list bmp-monitor-config {
49
50             key "monitor-id";
51             leaf monitor-id {
52                 type bmp-monitor:monitor-id;
53             }
54
55             uses server-config;
56
57             list monitored-router {
58                 leaf address {
59                     type inet:ip-address-no-zone;
60                     mandatory true;
61                 }
62
63                 key "address";
64
65                 leaf active {
66                     type boolean;
67                 }
68
69                 leaf port {
70                     when "../active = 'true'";
71                     type inet:port-number;
72                 }
73
74                 leaf password {
75                     type rfc2385:rfc2385-key;
76                     description "RFC2385 shared secret";
77                 }
78             }
79         }
80     }
81
82 }