Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@
"eStrKey" : "Pattern",
"eStr": ["drop|forward"]
},
"VLAN_SUB_INTERFACE_ENABLE_IPV6_LINK_LOCAL": {
"desc": "Enable the ipv6 link-local."
},
"VLAN_SUB_INTERFACE_INVALID_ENABLE_IPV6_LINK_LOCAL": {
"desc": "Enable the ipv6 link-local as true.",
"eStr": "Invalid value \"true\" in \"ipv6_use_link_local_only\" element."
},
"VLAN_SUB_INTERFACE_SHORT_NAME_FORMAT_VLAN_CHECK_MUST_CONDITION_FALSE_TEST": {
"desc": "Configure valid short name format vlan sub interface vlan must check condition false.",
"eStrKey": "Must"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,60 @@
}
}
},
"VLAN_SUB_INTERFACE_ENABLE_IPV6_LINK_LOCAL": {
"sonic-vlan-sub-interface:sonic-vlan-sub-interface": {
"sonic-vlan-sub-interface:VLAN_SUB_INTERFACE": {
"VLAN_SUB_INTERFACE_LIST": [
{
"name": "Ethernet8.10",
"ipv6_use_link_local_only": "enable"
}
]
}
},
"sonic-port:sonic-port": {
"sonic-port:PORT": {
"PORT_LIST": [
{
"name": "Ethernet8",
"admin_status": "up",
"alias": "Ethernet8/1",
"description": "Ethernet8",
"lanes": "45,46,47,48",
"mtu": 9000,
"speed": 100000
}
]
}
}
},
"VLAN_SUB_INTERFACE_INVALID_ENABLE_IPV6_LINK_LOCAL": {
"sonic-vlan-sub-interface:sonic-vlan-sub-interface": {
"sonic-vlan-sub-interface:VLAN_SUB_INTERFACE": {
"VLAN_SUB_INTERFACE_LIST": [
{
"name": "Ethernet8.10",
"ipv6_use_link_local_only": "true"
}
]
}
},
"sonic-port:sonic-port": {
"sonic-port:PORT": {
"PORT_LIST": [
{
"name": "Ethernet8",
"admin_status": "up",
"alias": "Ethernet8/1",
"description": "Ethernet8",
"lanes": "45,46,47,48",
"mtu": 9000,
"speed": 100000
}
]
}
}
},
"VLAN_SUB_INTERFACE_SHORT_NAME_FORMAT_VLAN_CHECK_MUST_CONDITION_FALSE_TEST": {
"sonic-vlan-sub-interface:sonic-vlan-sub-interface": {
"sonic-vlan-sub-interface:VLAN_SUB_INTERFACE": {
Expand Down
7 changes: 7 additions & 0 deletions src/sonic-yang-models/yang-models/sonic-bgp-neighbor.yang
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ module sonic-bgp-neighbor {
prefix lag;
}

import sonic-vlan-sub-interface {
prefix vlan-sub-interface;
}

// Comment sonic-vlan import here until libyang back-links issue is resolved for VLAN leaf reference.
//import sonic-vlan {
// prefix vlan;
Expand Down Expand Up @@ -94,6 +98,9 @@ module sonic-bgp-neighbor {
type string {
pattern 'Vlan([0-9]{1,3}|[1-3][0-9]{3}|[4][0][0-8][0-9]|[4][0][9][0-4])';
}
type leafref {
path "/vlan-sub-interface:sonic-vlan-sub-interface/vlan-sub-interface:VLAN_SUB_INTERFACE/vlan-sub-interface:VLAN_SUB_INTERFACE_LIST/vlan-sub-interface:name";
}
}
description "BGP Neighbor, it will be neighbor address or interface name";
}
Expand Down
10 changes: 10 additions & 0 deletions src/sonic-yang-models/yang-models/sonic-vlan-sub-interface.yang
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ module sonic-vlan-sub-interface {
description "Initial version";
}

revision 2025-12-23 {
description "Add leaf ipv6_use_link_local_only";
}

container sonic-vlan-sub-interface {
container VLAN_SUB_INTERFACE {

Expand Down Expand Up @@ -103,6 +107,12 @@ module sonic-vlan-sub-interface {
range 1..4094;
}
}

leaf ipv6_use_link_local_only {
description "Enable/Disable IPv6 link local address on vlan-sub-interface";
type stypes:mode-status;
default disable;
}
}

list VLAN_SUB_INTERFACE_IPPREFIX_LIST {
Expand Down
Loading