diff options
Diffstat (limited to 'tools/pyang_plugins/gobgp.yang')
-rw-r--r-- | tools/pyang_plugins/gobgp.yang | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index 1cf34800..29e3342d 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -9,6 +9,7 @@ module gobgp { // import some basic types import openconfig-bgp { prefix bgp; } + import openconfig-bgp-types { prefix bgp-types; } import openconfig-routing-policy {prefix rpol; } import openconfig-policy-types {prefix ptypes; } import openconfig-bgp-policy {prefix bgp-pol; } @@ -49,6 +50,74 @@ module gobgp { } } + identity eq { + base ptypes:attribute-comparison; + } + + identity ge { + base ptypes:attribute-comparison; + } + + identity le { + base ptypes:attribute-comparison; + } + + identity IPV4-MULTICAST { + base bgp-types:afi-safi-type; + description + "IPv4 multicast (AFI,SAFI = 1,2)"; + reference "RFC4760"; + } + + identity IPV6-MULTICAST { + base bgp-types:afi-safi-type; + description + "IPv4 multicast (AFI,SAFI = 1,2)"; + reference "RFC4760"; + } + + identity RTC { + base bgp-types:afi-safi-type; + description + "Route target membership (AFI,SAFI = 1,132)"; + reference "RFC4684"; + } + + identity ENCAP { + base bgp-types:afi-safi-type; + description + "Encapsulation (AFI,SAFI = 1,7)"; + reference "RFC5512"; + } + + identity IPV4-FLOWSPEC { + base bgp-types:afi-safi-type; + description + "IPv4 flowspec (AFI,SAFI = 1,133)"; + reference "RFC5575"; + } + + identity L3VPN-IPV4-FLOWSPEC { + base bgp-types:afi-safi-type; + description + "L3VPN IPv4 flowspec (AFI,SAFI = 1,134)"; + reference "RFC5575"; + } + + identity IPV6-FLOWSPEC { + base bgp-types:afi-safi-type; + description + "IPv6 flowspec (AFI,SAFI = 1,133)"; + reference "RFC5575"; + } + + identity L3VPN-IPV6-FLOWSPEC { + base bgp-types:afi-safi-type; + description + "L3VPN IPv6 flowspec (AFI,SAFI = 1,134)"; + reference "RFC5575"; + } + grouping gobgp-message-counter { description "Counters for all BGPMessage types"; |