module bgp-test { yang-version 1; namespace "urn:opendaylight:params:xml:ns:yang:bgp:test"; prefix "bgp-inet"; import bgp-rib { prefix bgp-rib; revision-date 2018-03-29; } import bgp-multiprotocol { prefix bgp-mp; revision-date 2018-03-29; } import ietf-inet-types { prefix inet; revision-date 2013-07-15; } import bgp-message { prefix bgp-msg; revision-date 2020-01-20; } organization "AT&T Services, Inc."; contact "Claudio D. Gasparini "; description "This module contains the base data model for test . Copyright (c) 2018 AT&T Intellectual Property. 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 "2018-05-15" { description "Initial test model"; } grouping ipv4-prefixes { container destination-ipv4 { list ipv4-prefixes { uses bgp-msg:ipv4-prefix-and-path-id; } } } grouping ipv4-routes { container ipv4-routes { list ipv4-route { key "route-key path-id"; uses bgp-rib:route; leaf prefix { type inet:ipv4-prefix; } } } } augment "/bgp-msg:update/bgp-msg:attributes/bgp-mp:mp-reach-nlri/bgp-mp:advertized-routes/bgp-mp:destination-type" { case destination-ipv4-case { when "../../afi = ipv4"; uses ipv4-prefixes; } } augment "/bgp-msg:update/bgp-msg:attributes/bgp-mp:mp-unreach-nlri/bgp-mp:withdrawn-routes/bgp-mp:destination-type" { case destination-ipv4-case { when "../../afi = ipv4"; uses ipv4-prefixes; } } augment "/bgp-rib:application-rib/bgp-rib:tables/bgp-rib:routes" { case ipv4-routes-case { uses ipv4-routes; } } augment "/bgp-rib:bgp-rib/bgp-rib:rib/bgp-rib:loc-rib/bgp-rib:tables/bgp-rib:routes" { case ipv4-routes-case { uses ipv4-routes; } } augment "/bgp-rib:bgp-rib/bgp-rib:rib/bgp-rib:peer/bgp-rib:adj-rib-in/bgp-rib:tables/bgp-rib:routes" { case ipv4-routes-case { uses ipv4-routes; } } augment "/bgp-rib:bgp-rib/bgp-rib:rib/bgp-rib:peer/bgp-rib:effective-rib-in/bgp-rib:tables/bgp-rib:routes" { case ipv4-routes-case { uses ipv4-routes; } } augment "/bgp-rib:bgp-rib/bgp-rib:rib/bgp-rib:peer/bgp-rib:adj-rib-out/bgp-rib:tables/bgp-rib:routes" { case ipv4-routes-case { uses ipv4-routes; } } }