Skip to content
Closed
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
c7bc25e
[fwutil]: Command-line utility for interacting with platform componen…
nazariig Feb 20, 2020
18d2c65
[config] Add 'config interface mtu' command (#793)
okuzovych Feb 20, 2020
70210f1
Added check if service existis before start/stop/restart of service. …
abdosi Feb 21, 2020
0dd758c
Fix for dhcp_relay deletion on a VLAN (#813)
AkhileshSamineni Feb 21, 2020
474c6a1
[Command-Reference.md] Unify Usage statments and Examples (including …
jleveque Feb 21, 2020
cdb5f04
Multi-Db changes for NAT feature. (#818)
AkhileshSamineni Feb 21, 2020
e40192f
[reboot] make sure the reboot happens even if platform reboot failed …
yxieca Feb 23, 2020
78b7235
add support for MCLAG (#453)
shine4chen Feb 24, 2020
2eed75d
[MultiDB] sonic-utilities - replace redis-cli/redis-dump with sonic-d…
dzhangalibaba Feb 28, 2020
6cdc5be
Update config/show to include PFC Watchdog commands (#736)
andriymoroz-mlnx Mar 1, 2020
fe1216d
[fwutil]: Set default socket timeout for FW download to 30 sec. (#821)
nazariig Mar 1, 2020
7f36545
Add kdump support for Aboot platforms (#824)
byu343 Mar 12, 2020
46ae40f
[Mellanox] add document for thermal control related cli (#832)
Junchao-Mellanox Mar 17, 2020
9563e3d
[intfutil] set speed to 0 when interface speed is not available (#839)
yxieca Mar 17, 2020
ce5e81a
[config]: add syslog messages to config load_minigraph/reload (#843)
lguohan Mar 18, 2020
6af3dce
[sonic_installer] Enable ARM64 arch (#811)
antony-rheneus Mar 20, 2020
abdc68d
[db_migrator]Do DB migration for buffer pool size change on Mellanox …
keboliu Mar 20, 2020
f9352df
explicitly specify command with underscores (#846)
lguohan Mar 22, 2020
c6e23da
Update Command Reference with sFlow section (#841)
padmanarayana Mar 22, 2020
fb4c00f
[decode-syseeprom] fix getattribute check for sime platforms (#835)
mykolaf Mar 22, 2020
bd62a0a
Fix kernel panic for irq after fast-reboot (#823)
byu343 Mar 22, 2020
2f50ff1
return list for _get_optional_services() (#822)
shine4chen Mar 22, 2020
7cd85c7
Revert "return list for _get_optional_services() (#822)" (#848)
lguohan Mar 22, 2020
3d8ff33
Revert "add support for MCLAG (#453)" (#849)
lguohan Mar 22, 2020
66b20f1
[config] Add sflow to _reset_failed_services (#850)
stephenxs Mar 24, 2020
049c379
[fwutil]: Use overlay driver when mounting next image filesystem (#825)
nazariig Mar 24, 2020
7602508
Fix for adding L3 interface to Vlan group (#826)
shlomibitton Mar 24, 2020
635bccb
[fwutil]: Fix component table layout. (#831)
nazariig Mar 24, 2020
02a34ed
[ntp]: support "show ntp" with mgmt vrf based on linux os version (#858)
bsun-sudo Mar 25, 2020
14269f8
[Mellanox] Fix thermal control issue: use natural sort for fan status…
Junchao-Mellanox Mar 25, 2020
c70e9be
[multi-asic]: Update reload of systemd services to support multi-asic…
SuvarnaMeenakshi Mar 25, 2020
9a0be97
[pfc] Add command line to enable/disable/show PFC (#796)
baiwei0427 Apr 3, 2020
a531039
[watermarkstat] Fix issue of fields overwritten before display (#862)
neethajohn Apr 3, 2020
e2f62eb
Explicitly specify command names with underscores (continued) (#852)
jleveque Apr 3, 2020
c98e7e3
Fixes bug for PFCWD feature parameters (#838)
shlomibitton Apr 7, 2020
809813e
Fix Python warnings (#867)
jleveque Apr 8, 2020
86cb844
Fix more Python warnings (#869)
jleveque Apr 8, 2020
42ef46a
[showtech]: dump docker stats (#864)
shlomibitton Apr 8, 2020
7920882
Fix even more Python warnings (#873)
jleveque Apr 9, 2020
ab90e7d
[doc]: add ltgm and jenkins badge (#875)
lguohan Apr 9, 2020
386beb8
Add platform options to 'show techsupport' command (#865)
shlomibitton Apr 13, 2020
fa1ed97
[fwutil]: Update Command-Reference.md. (#876)
nazariig Apr 14, 2020
9c547eb
[config] Implement a process level lock (#857)
Apr 14, 2020
f39704f
[generate_dump] Dump systemd specific information (#602)
Staphylo Apr 17, 2020
d59cb4a
Revert "[config] Implement a process level lock (#857)" (#882)
lguohan Apr 18, 2020
c4c14f3
[show][bgp] Use only 'show ip bgp' as the base and use bgp_frr_v4 fil…
tsvanduyn Apr 21, 2020
6c448d7
[Vxlan] : adding show vnet/vxlan cmds (#880)
dzhangalibaba Apr 23, 2020
8b6cf84
[show] Add 'ip/ipv6 bgp network' commands (#888)
tsvanduyn Apr 24, 2020
5328c18
[fast reboot] set a fast-reboot DB flag (#887)
yxieca Apr 27, 2020
7fb0f35
[utility] Filter FDB entries (#890)
tahmed-dev Apr 28, 2020
167e993
Allow show ztp to display non-sensitive information visible to non-ro…
rajendra-dendukuri Apr 29, 2020
a68b87c
[doc]: ZTP configuration and show commands (#866)
rajendra-dendukuri Apr 29, 2020
e89d230
[fwutil]: Fix firmware update command. (#895)
nazariig Apr 29, 2020
db21d2b
Make `config` command support abbreviation. (#893)
qiluo-msft Apr 29, 2020
f90c9cc
ssd_mitigation_changes (#829)
rkdevi27 Apr 30, 2020
660a287
[psushow] Add a column to display LED color to show platform psustatu…
Junchao-Mellanox Apr 30, 2020
24e029b
Improved route_check tool and adopt to 20191130 image. (#898)
renukamanavalan May 2, 2020
9e9d99d
[config] Add support for multi-ASIC devices (#877)
judyjoseph May 2, 2020
fa19768
[show] Fix abbreviations for 'show ip bgp ...' commands (#901)
jleveque May 4, 2020
5f18b8d
[Vnet] Fix NameError for 'swsssdk' and align output (#902)
prsunny May 6, 2020
98b0cb6
[config] Support load_minigraph command for multi NPU platform (#896)
arlakshm May 7, 2020
af93c5e
[show] Add 'errors' and 'rates' subcommands to 'show interfaces count…
tsvanduyn May 8, 2020
0ba8690
[config] Add 'interface transceiver' subgroup with 'lpmode' and 'rese…
jleveque May 9, 2020
fbe3750
Remove dependency on click-default-group package (#903)
jleveque May 9, 2020
30a2636
[config] Log invocation of config commands to syslog (#259)
jleveque May 10, 2020
e5c7c17
[show] Add `ntpstat` output to `show ntp` (#861)
yangshp1987 May 11, 2020
96e5abd
[MultiDB] use sonic-db-cli instead of redis-cli in new added codes (#…
dzhangalibaba May 13, 2020
a2c4c30
[fanshow] Add column drawer name and led status to output of show pla…
Junchao-Mellanox May 13, 2020
bae3f05
Stop/Start restapi server upon config reload (#911)
sumukhatv May 13, 2020
e8904d2
Changes to support acl-loader and mirror-session config commands for …
abdosi May 13, 2020
03cd9ef
Fix is_mgmt_vrf_enabled when MGMT_VRF_CONFIG is not present the confi…
bsun-sudo May 14, 2020
8698b3c
Changes to commands config reload/load-minigraph (#919)
abdosi May 20, 2020
b3b444a
Loopback interface configuration CLIs (#879)
preetham-singh May 21, 2020
89b87c0
Multi-asic changes for config bgp commands and utilities. (#910)
judyjoseph May 21, 2020
5b032f9
Add common PCIe diag tool (#771)
carycelestica May 25, 2020
9765cd0
Add 'hw-management-generate-dump.sh' to 'show techsupport' command (#…
shlomibitton May 26, 2020
98ae8ba
Revert the change to kdump reboot (#916)
byu343 May 28, 2020
11332d5
Vnet alias mapping (#924)
prsunny May 28, 2020
861ae35
[showtech]: add knet dump information in show tech (#925)
lguohan May 28, 2020
410b573
Changes to make lldp show command for multi-npu platforms. (#914)
abdosi May 29, 2020
05253a2
Make sure db_migrator is run after all config are loaded during (#926)
abdosi May 30, 2020
a88ab00
add fec config/show option (#764)
yangshp1987 Jun 2, 2020
4e1e61c
Add_intf_range (#913)
stevenlu99 Jun 6, 2020
67a0c6c
[warm-reboot]: added pre-check for ISSU file (#915)
vadymhlushko-mlnx Jun 9, 2020
a796edf
[show] Add support for SONiC Gearbox Manager via new gearboxutil util…
sydlogan Jun 10, 2020
40c4884
[sfputil] Add support of platform.json (#767)
samaity Jun 11, 2020
b23accf
Fixed fast-reboot for BFN platform (#871)
akokhan Jun 12, 2020
e5c9f4c
[crm] Use swsssdk API instead of redis-cli for getting keys from redi…
Jun 12, 2020
a150470
[config] Don't attempt to restart disabled services (#944)
jleveque Jun 12, 2020
3715ff8
handled the priority of ACL rules to be case insensitive (#918)
madhanmellanox Jun 15, 2020
219fea1
[fwutil]: Update fwutil to v2.0.0.0. (#941)
nazariig Jun 15, 2020
5fe40b6
Fix for command. show interface transceiver eeprom -d Ethernet
abdosi Jun 21, 2020
fce546d
[master]fix #4716 show ipv6 interfaces neighbor_ip is N/A issue (#948)
tim-rj Jun 24, 2020
38bfdc6
[filter-fdb] Check VLAN Presence When Filter FDB (#957)
tahmed-dev Jun 24, 2020
634e483
[show] Add missing verbose option to "show line" (#961)
lolyu Jun 25, 2020
c28b057
[sfpshow][mock_state_db] Tweak key names of some transceiver info fie…
jleveque Jun 25, 2020
85879dd
[Show | Command Reference] Add Port breakout Show Command (#859)
samaity Jun 25, 2020
a8c36c8
[sonic_installer] Refactor sonic_installer code (#953)
Staphylo Jun 26, 2020
c4a564b
[config] Fix indentation level in _get_disabled_services_list() (#965)
jleveque Jun 27, 2020
40d4667
[config] Fix syntax error (#966)
jleveque Jun 27, 2020
347de12
Suppport to verify aboot swi image for secure boot (#969)
xumia Jun 30, 2020
bb08bf3
Append default mask field if user has not provided one (#972)
prsunny Jul 1, 2020
90dff47
Add support for port mirroring CLIs (#936)
rupesh-k Jul 1, 2020
5830433
[config] Add ConfigMgmt class for config validation, delete ports, ad…
Jul 2, 2020
4e2a53e
Add watchdogutil to control the hw watchdog (#945)
sujinmkang Jul 8, 2020
569ab64
Separated the notifications for "sonic-clear nat translations" and …
AkhileshSamineni Jul 8, 2020
b51a7e8
[Multi NPU] Time Improvements to the config reload/load_minigraph com…
judyjoseph Jul 9, 2020
9f24043
Enable HW watchdog before fast-reboot (#977)
sujinmkang Jul 10, 2020
6961a91
Intf table migration for APP_DB entries during warmboot (#980)
prsunny Jul 11, 2020
9d20212
[filter-fdb] Fix For Vlan Defined With No CIDR (#976)
tahmed-dev Jul 11, 2020
1f61b8a
Fixed show interface status to get Interface to
abdosi Aug 4, 2020
547642b
Merge remote-tracking branch 'upstream/master' into intfutil_fix
abdosi Aug 4, 2020
c8e8e8e
Merge remote-tracking branch 'upstream/master' into intfutil_fix
abdosi Aug 4, 2020
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
30 changes: 17 additions & 13 deletions scripts/intfutil
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ def tuple_to_dict(tup, new_dict):
return new_dict


def get_raw_portchannel_info(config_db):
def get_raw_portchannel_info(aapl_db):
"""
This function uses the redis config_db as input and gets the "PORTCHANNEL_MEMBER" table
This function uses the redis aapl_db as input and gets the "LAG_MEMBER_TABLE" table
create
>>> get_po_int_configdb_info = get_portchannel_info(config_db)
>>> pprint(get_po_int_configdb_info)
Expand All @@ -208,26 +208,30 @@ def get_raw_portchannel_info(config_db):
('PortChannel0004', 'Ethernet124'): {}}
This function returns a dictionary with the key being portchannels and interface tuple.
"""
get_raw_po_int_configdb_info = config_db.get_table('PORTCHANNEL_MEMBER')
return get_raw_po_int_configdb_info # Return a dictionary with the key being the portchannel and interface
get_raw_po_int_appdb_info = {}
team_keys = aapl_db.keys(aapl_db.APPL_DB, "LAG_MEMBER_TABLE:"+"*")
for key in team_keys:
team_info = key.split(":")
get_raw_po_int_appdb_info[(team_info[1], team_info[2])] = {}
return get_raw_po_int_appdb_info # Return a dictionary with the key being the portchannel and interface

def get_portchannel_list(get_raw_po_int_configdb_info):
def get_portchannel_list(get_raw_po_int_appdb_info):
"""
>>> portchannel_list = get_portchannel_list(get_raw_po_int_configdb_info)
>>> portchannel_list = get_portchannel_list(get_raw_po_int_appdb_info)
>>> pprint(portchannel_list)
['PortChannel0001', 'PortChannel0002', 'PortChannel0003', 'PortChannel0004']
>>>
"""
portchannel_list = []
for po in get_raw_po_int_configdb_info:
for po in get_raw_po_int_appdb_info:
portchannel = po[0]
if portchannel not in portchannel_list:
portchannel_list.append(portchannel)
return natsorted(portchannel_list)

def create_po_int_tuple_list(get_raw_po_int_configdb_info):
def create_po_int_tuple_list(get_raw_po_int_appdb_info):
"""
>>> po_int_tuple = get_raw_po_int_configdb_info.keys()
>>> po_int_tuple = get_raw_po_int_appdb_info.keys()
>>> pprint(po_int_tuple_list)
[('PortChannel0001', 'Ethernet108'),
('PortChannel0002', 'Ethernet116'),
Expand All @@ -236,7 +240,7 @@ def create_po_int_tuple_list(get_raw_po_int_configdb_info):
('PortChannel0001', 'Ethernet112')]
>>>
"""
po_int_tuple_list = get_raw_po_int_configdb_info.keys()
po_int_tuple_list = get_raw_po_int_appdb_info.keys()
return po_int_tuple_list

def create_po_int_dict(po_int_tuple_list):
Expand Down Expand Up @@ -445,9 +449,9 @@ class IntfStatus(object):
self.front_panel_ports_list = get_frontpanel_port_list(self.config_db)
appl_db_keys = appl_db_keys_get(self.appl_db, self.front_panel_ports_list, None)
self.int_to_vlan_dict = get_interface_vlan_dict(self.config_db)
self.get_raw_po_int_configdb_info = get_raw_portchannel_info(self.config_db)
self.portchannel_list = get_portchannel_list(self.get_raw_po_int_configdb_info)
self.po_int_tuple_list = create_po_int_tuple_list(self.get_raw_po_int_configdb_info)
self.get_raw_po_int_appdb_info = get_raw_portchannel_info(self.appl_db)
self.portchannel_list = get_portchannel_list(self.get_raw_po_int_appdb_info)
self.po_int_tuple_list = create_po_int_tuple_list(self.get_raw_po_int_appdb_info)
self.po_int_dict = create_po_int_dict(self.po_int_tuple_list)
self.int_po_dict = create_int_to_portchannel_dict(self.po_int_tuple_list)
self.combined_int_to_vlan_po_dict = merge_dicts(self.int_to_vlan_dict, self.int_po_dict)
Expand Down