This module contains a collection of YANG definitions for managing direct route VLINK.
Version: 2019-07-15
module huawei-direct-route-vlink { yang-version 1; namespace "urn:huawei:yang:huawei-direct-route-vlink"; prefix directrtvlink; import huawei-extension { prefix ext; } import huawei-ifm { prefix ifm; } import huawei-network-instance { prefix ni; } import huawei-routing-policy { prefix rtp; } import huawei-ip { prefix ip; } import huawei-ethernet { prefix ethernet; } import huawei-l3vpn { prefix l3vpn; } import huawei-xpl { prefix xpl; } organization "Huawei Technologies Co., Ltd."; contact "Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: support@huawei.com"; description "This module contains a collection of YANG definitions for managing direct route VLINK."; revision "2019-07-15" { description "Initial revision."; reference "Huawei private."; } ext:task-name "eum"; typedef vlink-address-family { type enumeration { enum "ipv4uni" { value 0; description "IPv4 unicast."; } enum "ipv6uni" { value 1; description "IPv6 unicast."; } } description "The type of VLINK address family."; } container direct-route-vlink { description "Configure VLINK routes."; container vlink-import-routes { description "List of configuration VLINK import routes."; list vlink-import-route { must "source-vpn-instance!=destination-vpn-instance"; key "address-family source-vpn-instance destination-vpn-instance"; max-elements 256; description "Configure VLINK import route."; leaf address-family { type vlink-address-family; description "Address family: IPv4 or IPv6 unicast address family."; } leaf source-vpn-instance { type leafref { path "/ni:network-instance/ni:instances/ni:instance/ni:name"; } must "((../address-family = 'ipv4uni') and (/ni:network-instance/ni:instances/ni:instance[ni:name=current()]/l3vpn:afs/l3vpn:af[l3vpn:type='ipv4-unicast'])) or ((../address-family = 'ipv6uni') and (/ni:network-instance/ni:instances/ni:instance[ni:name=current()]/l3vpn:afs/l3vpn:af[l3vpn:type='ipv6-unicast']))"; description "Source VPN instance."; } leaf destination-vpn-instance { type leafref { path "/ni:network-instance/ni:instances/ni:instance/ni:name"; } must "((../address-family = 'ipv4uni') and (/ni:network-instance/ni:instances/ni:instance[ni:name=current()]/l3vpn:afs/l3vpn:af[l3vpn:type='ipv4-unicast'])) or ((../address-family = 'ipv6uni') and (/ni:network-instance/ni:instances/ni:instance[ni:name=current()]/l3vpn:afs/l3vpn:af[l3vpn:type='ipv6-unicast']))"; description "Destination VPN instance."; } choice route-configuration { description "Configuring a routing policy or filter."; case route-policy { description "Configuring a routing policy."; leaf route-policy-name { type leafref { path "/rtp:routing-policy/rtp:policy-definitions/rtp:policy-definition/rtp:name"; } description "Set the name of a VLINK routing policy."; } } // case route-policy case route-filter { description "Configuring a routing policy or filter."; leaf route-filter-name { type leafref { path "/xpl:xpl/xpl:route-filters/xpl:route-filter/xpl:name"; } description "Set the name of a VLINK routing filter."; } } // case route-filter } // choice route-configuration } // list vlink-import-route } // container vlink-import-routes } // container direct-route-vlink } // module huawei-direct-route-vlink
© 2023 YumaWorks, Inc. All rights reserved.