-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
confd: allow interface description as ifAlias
This patch adds support for setting the free form description string as the interface alias. This can be read from /sys/class/net/*/ifalias, or using the 'ip link show' command. The ifalias is reported by SNMP and LLDP by default, and now also in the operational datastore. Linux supports 250 characters in ifalias, but the IF-MIB is restricted to 64 characters, so we add a local deviation to limit the type. Signed-off-by: Joachim Wiberg <[email protected]>
- Loading branch information
Showing
6 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ MODULES=( | |
"[email protected]" | ||
"[email protected]" | ||
"[email protected]" | ||
"infix-interfaces@2024-10-14.yang -e vlan-filtering" | ||
"infix-interfaces@2024-10-28.yang -e vlan-filtering" | ||
|
||
# from rousette | ||
"[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# -*- sh -*- | ||
# REMEMBER TO UPDATE infix-interfaces ALSO IN confd.inc | ||
MODULES=( | ||
"infix-interfaces@2024-10-14.yang -e vlan-filtering -e containers" | ||
"infix-interfaces@2024-10-28.yang -e vlan-filtering -e containers" | ||
"[email protected]" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,11 @@ module infix-interfaces { | |
contact "[email protected]"; | ||
description "Linux bridge and lag extensions for ietf-interfaces."; | ||
|
||
revision 2024-10-28 { | ||
description "Limit description to 64 chars, matching IF-MIB max."; | ||
reference "internal"; | ||
} | ||
|
||
revision 2024-10-14 { | ||
description "Deviate link-up-down-trap-enable not-supported."; | ||
reference "internal"; | ||
|
@@ -84,6 +89,18 @@ module infix-interfaces { | |
} | ||
} | ||
|
||
deviation "/if:interfaces/if:interface/if:description" { | ||
deviate replace { | ||
type string { | ||
length "0..64"; | ||
} | ||
} | ||
} | ||
|
||
deviation "/if:interfaces/if:interface/if:link-up-down-trap-enable" { | ||
deviate not-supported; | ||
} | ||
|
||
augment "/if:interfaces/if:interface" { | ||
description "Custom phys-address management, static or derived from chassis MAC."; | ||
|
||
|
@@ -114,7 +131,4 @@ module infix-interfaces { | |
} | ||
} | ||
} | ||
deviation "/if:interfaces/if:interface/if:link-up-down-trap-enable" { | ||
deviate not-supported; | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters