IP tunnel related configuration.
Version: 2020-05-09
module huawei-tunnel6 { yang-version 1; namespace "urn:huawei:yang:huawei-tunnel6"; prefix tunnel6; import huawei-pub-type { prefix pub-type; } import ietf-inet-types { prefix inet; } import huawei-ifm { prefix ifm; } import huawei-extension { prefix ext; } import huawei-tunnel-management { prefix tnlm; } import huawei-network-instance { prefix ni; } import huawei-l3vpn { prefix l3vpn; } 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 "IP tunnel related configuration."; revision "2020-05-09" { description "Initial revision."; reference "Huawei private."; } ext:task-name "tunnel6"; container tunnel6 { description "IP tunnel related configuration."; container global { description "Configure global configuration of IP tunnel."; leaf encapsulation-limit { type uint8 { range "0..255"; } default "4"; description "Tunnel encapsulation limit carried in the destination option header extension option in the IPv6 header."; } leaf flow-label { type uint32 { range "0..1048575"; } default "0"; description "IPv6 flow-label."; } leaf hop-limit { type uint8 { range "1..255"; } default "64"; description "IPv6 hop-limit."; } leaf traffic-class { type uint16 { ext:value-meaning { ext:item "256" { ext:meaning "Original"; } } range "0..256"; } default "0"; description "IPv6 traffic-class."; } } // container global container ipip-4over6-bindings { description "List of interfaces bound to IPv4 over IPv6 tunnel. After an IPv4 over IPv6 tunnel interface is created, you need configure a source interface or a source IPv6 address for the tunnel interface. Then, configure a binding interface to enable IPv4 over IPv6 on the source interface or the interface to which the source IPv6 address belongs, so that packets can be transmitted from the source tunnel interface to the corresponding tunnel service boards for processing."; list ipip-4over6-binding { key "bind-ifname"; description "Configure a interface bound to IPv4 over IPv6 tunnel."; leaf bind-ifname { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } must "/ifm:ifm/ifm:interfaces/ifm:interface[ifm:name=current()]/ifm:type = 'LoopBack'"; description "Name of the interface bound to a IPv4 Over IPv6 tunnel."; } } // list ipip-4over6-binding } // container ipip-4over6-bindings } // container tunnel6 } // module huawei-tunnel6
© 2023 YumaWorks, Inc. All rights reserved.