-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
sonic-bgp-monitor.yang
53 lines (43 loc) · 1.16 KB
/
sonic-bgp-monitor.yang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module sonic-bgp-monitor {
namespace "http://github.com/sonic-net/sonic-bgp-monitor";
prefix bgpmon;
yang-version 1.1;
import ietf-inet-types {
prefix inet;
}
import sonic-types {
prefix stypes;
}
import sonic-bgp-common {
prefix bgpcmn;
}
organization
"SONiC";
contact
"SONiC";
description
"SONIC BGP Monitor";
revision 2022-01-11 {
description
"Initial revision.";
}
container sonic-bgp-monitor {
container BGP_MONITORS {
list BGP_MONITORS_LIST {
description "This list is to support BGP monitor configuration handled by bgpcfgd";
key "addr";
leaf addr {
type inet:ip-address;
description "BGP monitor address";
}
uses bgpcmn:sonic-bgp-cmn-neigh {
refine name {
must "current() = 'BGPMonitor'" {
error-message "Invalid BGP monitor name";
}
}
}
}
}
}
}