-
Notifications
You must be signed in to change notification settings - Fork 711
Routed subinterface enhancements #1821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
88bae6d
35007ed
62caf8c
02394f3
802da1b
3897e2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ from tabulate import tabulate | |
from utilities_common import constants | ||
from utilities_common import multi_asic as multi_asic_util | ||
from utilities_common.intf_filter import parse_interface_in_filter | ||
from sonic_py_common.interface import intf_get_longname | ||
|
||
# mock the redis for unit test purposes # | ||
try: | ||
|
@@ -313,12 +314,12 @@ def appl_db_portchannel_status_get(appl_db, config_db, po_name, status_type, por | |
def appl_db_sub_intf_status_get(appl_db, config_db, front_panel_ports_list, portchannel_speed_dict, sub_intf_name, status_type): | ||
sub_intf_sep_idx = sub_intf_name.find(VLAN_SUB_INTERFACE_SEPARATOR) | ||
if sub_intf_sep_idx != -1: | ||
parent_port_name = sub_intf_name[:sub_intf_sep_idx] | ||
vlan_id = sub_intf_name[sub_intf_sep_idx + 1:] | ||
parent_port_name = intf_get_longname(sub_intf_name[:sub_intf_sep_idx]) | ||
|
||
full_intf_table_name = "INTF_TABLE" + ":" + sub_intf_name | ||
|
||
if status_type == "vlan": | ||
vlan_id = appl_db.get(appl_db.APPL_DB, full_intf_table_name, status_type) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where can we find DB migrator change to populate vlan_id field from sub-interface name? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As per updated design, intfmgrd supports both short name and long name format subinterfaces. |
||
return vlan_id | ||
|
||
if status_type == "admin_status": | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please put these new Click commands in this PR description for easy reference? also, hope you are planning to update the Click config guide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.