Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
437a0a2
Create GCU wheel
xincunli-sonic Feb 27, 2026
79057b2
fix test
xincunli-sonic Feb 27, 2026
752c085
Refactor
xincunli-sonic Mar 3, 2026
852a4ee
Fixed show vxlan remotemac ambiguity (#4121)
Gnanapriya27 Feb 27, 2026
6f2c28f
Fix spelling typos across utilities_common, config plugins, and misc …
rustiqly Feb 27, 2026
ea7992e
In route_check.py, Convey the IJSON Backend using an env variable (#4…
venkit-nexthop Feb 27, 2026
012f173
Fix spelling typos in config/nat.py (#4258)
rustiqly Feb 27, 2026
6a90b4e
Fix spelling typos in config/config_mgmt.py (#4260)
rustiqly Feb 27, 2026
7f7cb0e
Fix spelling typos in show/ and clear/ modules (#4263)
rustiqly Feb 27, 2026
50e759f
Fix spelling typos in scripts/ (#4262)
rustiqly Feb 27, 2026
c0a4cfe
Fix spelling typos in config/main.py (#4261)
rustiqly Feb 27, 2026
10a2bbf
Fix spelling typos in muxcable modules (#4259)
rustiqly Feb 27, 2026
4f515fb
Fix unit test assertions broken by spelling typo PRs (#4321)
rustiqly Feb 28, 2026
45d1fbc
Add fsync to config save to persist config across power cycle (#4313)
jianyuewu Mar 2, 2026
f4f2c7b
[LACP retry-count] Syntax Fix for Trixie (#4274)
YairRaviv Mar 2, 2026
9f4d340
fix scapy delayed import when we have large routes (#4315)
tirupatihemanth Mar 2, 2026
2fd0936
fix: skip PORT_INGRESS/EGRESS_MIRROR_CAPABLE check for ERSPAN mirror …
bingwang-ms Mar 3, 2026
c66fb71
Fix 'show version' KeyError when sonic_version.yml has missing fields…
securely1g Mar 3, 2026
3a54a8d
Modified dualtor_neighbor_check to use mux neighbor_mode (#4227)
manamand2020 Mar 3, 2026
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
2 changes: 1 addition & 1 deletion acl_loader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ def convert_rule_to_db_schema(self, table_name, rule, skip_action_validation=Fal

rule_props["PRIORITY"] = str(self.max_priority - rule_idx)

# setup default ip type match to dataplane acl (could be overriden by rule later)
# setup default ip type match to dataplane acl (could be overridden by rule later)
if self.is_table_l3v4v6(table_name):
# ETHERTYPE must be passed and it should be one of IPv4 or IPv6
try:
Expand Down
2 changes: 1 addition & 1 deletion clear/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_command(self, ctx, cmd_name):


# To be enhanced. Routing-stack information should be collected from a global
# location (configdb?), so that we prevent the continous execution of this
# location (configdb?), so that we prevent the continuous execution of this
# bash oneliner. To be revisited once routing-stack info is tracked somewhere.
def get_routing_stack():
result = 'frr'
Expand Down
30 changes: 15 additions & 15 deletions config/config_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

class ConfigMgmt():
'''
Class to handle config managment for SONIC, this class will use sonic_yang
Class to handle config management for SONIC, this class will use sonic_yang
to verify config for the commands which are capable of change in config DB.
'''

Expand Down Expand Up @@ -336,7 +336,7 @@ def _checkKeyinAsicDB(self, key, db):

Parameters:
db (SonicV2Connector): database.
key (str): key in ASIC DB, with table Seperator if applicable.
key (str): key in ASIC DB, with table Separator if applicable.

Returns:
(bool): True, if given key is present.
Expand Down Expand Up @@ -424,11 +424,11 @@ def breakOutPort(self, delPorts=list(), portJson=dict(), force=False, \
delPorts (list): ports to be deleted.
portJson (dict): Config DB json Part of all Ports, generated from
platform.json.
force (bool): if false return dependecies, else delete dependencies.
force (bool): if false return dependencies, else delete dependencies.
loadDefConfig: If loadDefConfig, add default config for ports as well.

Returns:
(deps, ret) (tuple)[list, bool]: dependecies and success/failure.
(deps, ret) (tuple)[list, bool]: dependencies and success/failure.
'''
MAX_WAIT = 60
try:
Expand Down Expand Up @@ -471,15 +471,15 @@ def breakOutPort(self, delPorts=list(), portJson=dict(), force=False, \

def _deletePorts(self, ports=list(), force=False):
'''
Delete ports and dependecies from data tree, validate and return resultant
Delete ports and dependencies from data tree, validate and return resultant
config.

Parameters:
ports (list): list of ports
force (bool): if false return dependecies, else delete dependencies.
force (bool): if false return dependencies, else delete dependencies.

Returns:
(configToLoad, deps, ret) (tuple)[dict, list, bool]: config, dependecies
(configToLoad, deps, ret) (tuple)[dict, list, bool]: config, dependencies
and success/fail.
'''
configToLoad = None; deps = None
Expand All @@ -489,11 +489,11 @@ def _deletePorts(self, ports=list(), force=False):
self.sysLog(doPrint=True, msg='Start Port Deletion')
deps = list()

# Get all dependecies for ports
# Get all dependencies for ports
for port in ports:
xPathPort = self.sy.findXpathPortLeaf(port)
self.sysLog(doPrint=True, msg='Find dependecies for port {}'.\
format(port))
self.sysLog(doPrint=True,
msg='Find dependencies for port {}'.format(port))
dep = self.sy.find_data_dependencies(str(xPathPort))
if dep:
deps.extend(dep)
Expand All @@ -502,7 +502,7 @@ def _deletePorts(self, ports=list(), force=False):
if not force and deps:
return configToLoad, deps, False

# delets all deps, No topological sort is needed as of now, if deletion
# deletes all deps, No topological sort is needed as of now, if deletion
# of deps fails, return immediately
elif deps:
for dep in deps:
Expand Down Expand Up @@ -576,7 +576,7 @@ def _addPorts(self, portJson=dict(), loadDefConfig=True):
self._mergeConfigs(self.configdbJsonOut, defConfig, True)

# create a tree with merged config and validate, if validation is
# sucessful, then configdbJsonOut contains final and valid config.
# successful, then configdbJsonOut contains final and valid config.
self.sy.loadData(self.configdbJsonOut)
if self.validateConfigData()==False:
return configToLoad, False
Expand Down Expand Up @@ -711,7 +711,7 @@ def _searchKeysInConfig(self, In, Out, skeys):

def configWithKeys(self, configIn=dict(), keys=list()):
'''
This function returns the config with relavant keys in Input Config.
This function returns the config with relevant keys in Input Config.
It calls _searchKeysInConfig.

Parameters:
Expand Down Expand Up @@ -784,7 +784,7 @@ def _updateDiffConfigDB(self):

def _createConfigToLoad(self, diff, inp, outp):
'''
Create the config to write in Config DB, i.e. compitible with mod_config()
Create the config to write in Config DB, i.e. compatible with mod_config()
This functions has 3 inner functions:
-- _deleteHandler: to handle delete in diff. See example below.
-- _insertHandler: to handle insert in diff. See example below.
Expand All @@ -802,7 +802,7 @@ def _createConfigToLoad(self, diff, inp, outp):
is applied.

Returns:
configToLoad (dict): config in a format compitible with mod_Config().
configToLoad (dict): config in a format compatible with mod_Config().
'''

### Internal Functions ###
Expand Down
6 changes: 3 additions & 3 deletions config/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def upate_console_remote_device_name(db, linenum, devicename):
data = config_db.get_entry(table, linenum)
if data:
if dataKey in data and devicename == data[dataKey]:
# do nothing if the device name is same with existing configurtion
# do nothing if the device name is same with existing configuration
return
elif not devicename:
# remove configuration key from console setting if user not give a remote device name
Expand Down Expand Up @@ -166,7 +166,7 @@ def update_console_baud(db, linenum, baud):
if data:
baud = str(baud)
if dataKey in data and baud == data[dataKey]:
# do nothing if the baud is same with existing configurtion
# do nothing if the baud is same with existing configuration
return
else:
data[dataKey] = baud
Expand Down Expand Up @@ -197,7 +197,7 @@ def update_console_flow_control(db, mode, linenum):
data = config_db.get_entry(table, linenum)
if data:
if dataKey in data and innerMode == data[dataKey]:
# do nothing if the flow control setting is same with existing configurtion
# do nothing if the flow control setting is same with existing configuration
return
else:
data[dataKey] = innerMode
Expand Down
3 changes: 2 additions & 1 deletion config/flow_counters.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def _update_route_flow_counter_config(db, vrf, max_allowed_match, prefix_pattern

def _try_find_existing_pattern_by_ip_type(cfgdb, input_net, input_key, yes):
"""Try to find the same IP type pattern from CONFIG DB.
1. If found a pattern with the same IP type, but the patter does not equal, ask user if need to replace the old with new one
1. If found a pattern with the same IP type, but the pattern does not equal,
ask user if need to replace the old with new one
a. If user types "yes", remove the old one, return False
b. If user types "no", exit
2. If found a pattern with the same IP type and the pattern equal, return True
Expand Down
Loading
Loading