module bgp-types { yang-version 1; namespace "urn:opendaylight:params:xml:ns:yang:bgp-types"; prefix "bgp-t"; import ietf-inet-types { prefix inet; revision-date 2010-09-24; } organization "Cisco Systems, Inc."; contact "Dana Kutenicsova "; description "This module contains the base concepts contained in RFC4271 and RFC4760. Copyright (c)2013 Cisco Systems, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html"; revision "2013-09-19" { description "Initial revision."; reference "RFC4271, RFC4760"; } typedef bgp-origin { reference "http://tools.ietf.org/html/rfc4271#section-5"; description "Values of BGP Origin Path Attribute."; type enumeration { enum igp { value 0; } enum egp { value 1; } enum incomplete { value 2; } } } typedef bgp-subsequent-address-family { reference "http://tools.ietf.org/html/rfc4760#section-6"; type enumeration { enum unicast { value 1; } enum mpls-labeled-vpn { value 128; } enum linkstate { reference "http://tools.ietf.org/html/draft-ietf-idr-ls-distribution-03#section-3.2"; value 71; } } } typedef bgp-address-family { reference "http://www.iana.org/assignments/address-family-numbers/address-family-numbers.xhtml#address-family-numbers-2"; type enumeration { enum ipv4 { value 1; } enum ipv6 { value 2; } enum linkstate { reference "http://tools.ietf.org/html/draft-ietf-idr-ls-distribution-03#section-3.2"; value 16388; } } } grouping bgp-aggregator { reference "http://tools.ietf.org/html/rfc4271#section-5.1.7"; description "BGP Path Attribute AGGREGATOR."; leaf as-number { type inet:as-number; } leaf network-address { type inet:ipv4-address; } } }