File tree 35 files changed +33
-51
lines changed
35 files changed +33
-51
lines changed Original file line number Diff line number Diff line change 1
- #! /usr/bin/python -u
2
-
3
1
import click
4
2
import os
5
3
import subprocess
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python -u
2
- # -*- coding: utf-8 -*-
3
-
4
1
import fcntl
5
2
import os
6
3
import shutil
Original file line number Diff line number Diff line change 1
- #! /usr/bin/python -u
2
-
3
1
import click
4
2
import os
5
3
import pexpect
Original file line number Diff line number Diff line change 1
- #! /usr/bin/python -u
2
-
3
1
import click
4
2
import json
5
3
import swsssdk
Original file line number Diff line number Diff line change 1
- #! /usr/bin/python -u
2
- # date: 07/12/17
3
-
4
1
import click
5
2
import subprocess
6
3
Original file line number Diff line number Diff line change 1
- #! /usr/bin/python -u
2
-
3
1
import os
4
2
import sys
5
3
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
+
2
3
"""
3
4
using aclshow to display SONiC switch acl rules and counters
4
5
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
2
3
3
""""
4
4
Description: dump_nat_entries.py -- dump conntrack nat entries from kernel into a file
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
+
2
3
"""
3
4
ecnconfig is the utility to
4
5
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
+
2
3
"""
3
4
Script to show fan status.
4
5
"""
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
+
2
3
"""
3
4
Script to clear MAC/FDB entries learnt in Hardware
4
5
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
+
2
3
"""
3
4
Script to show MAC/FDB entries learnt in Hardware
4
5
Original file line number Diff line number Diff line change 1
- #! /usr/bin/python
1
+ #!/usr/bin/env python
2
2
3
3
import swsssdk
4
4
import sys
Original file line number Diff line number Diff line change 1
- #! /usr/bin/python
1
+ #!/usr/bin/env python
2
2
3
3
import argparse
4
4
import os
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
+
2
3
"""
3
4
mmuconfig is the utility to show and change mmu configuration
4
5
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
+
2
3
"""
3
4
Script to clear nat dynamic entries from Hardware and also to clear the nat statistics
4
5
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
2
3
3
"""
4
4
Script to show nat configuration
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
2
3
3
"""
4
4
Script to show nat entries and nat statistics in a summary view
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
+
2
3
"""
3
4
Script to show Ipv4/Ipv6 neighbor entries
4
5
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
+
2
3
"""
3
4
portconfig is the utility to show and change ECN configuration
4
5
Original file line number Diff line number Diff line change 1
- #! /usr/bin/python
1
+ #!/usr/bin/env python
2
2
3
3
import argparse
4
4
import sys
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
+
2
3
"""
3
4
Script to show sfp eeprom and presence status.
4
5
Not like sfputil this scripts get the sfp data from DB directly.
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
+
2
3
'''
3
4
Copyright 2019 Broadcom. The term "Broadcom" refers to Broadcom Inc.
4
5
and/or its subsidiaries.
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
+
2
3
"""
3
4
usage: sonic_sku_create.py [-h] [-v] [-f FILE] [-m [MINIGRAPH_FILE]] [-b BASE]
4
5
[-r] [-k HWSKU]
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
+
2
3
"""
3
4
Script to show fan status.
4
5
"""
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python
1
+ #!/usr/bin/env python
2
2
3
3
#####################################################################
4
4
#
Original file line number Diff line number Diff line change 1
- #!/usr/bin/python -u
2
- # -*- coding: utf-8 -*-
3
-
4
1
import os
5
2
6
3
import click
Original file line number Diff line number Diff line change 1
- #! /usr/bin/python -u
2
-
3
1
import json
4
2
import netaddr
5
3
import os
Original file line number Diff line number Diff line change 1
- #! /usr/bin/python -u
2
-
3
1
try :
4
2
import ConfigParser as configparser
5
3
except ImportError :
Original file line number Diff line number Diff line change @@ -999,7 +999,6 @@ def test_crm_show_resources_nexthop(self):
999
999
@classmethod
1000
1000
def teardown_class (cls ):
1001
1001
print ("TEARDOWN" )
1002
- os .environ ["PATH" ] = os .pathsep .join (os .environ ["PATH" ].split (os .pathsep )[:- 1 ])
1003
1002
os .environ ["UTILITIES_UNIT_TESTING" ] = "0"
1004
1003
1005
1004
class TestCrmMultiAsic (object ):
@@ -1295,7 +1294,6 @@ def test_crm_multi_asic_show_resources_nexthop(self):
1295
1294
@classmethod
1296
1295
def teardown_class (cls ):
1297
1296
print ("TEARDOWN" )
1298
- os .environ ["PATH" ] = os .pathsep .join (os .environ ["PATH" ].split (os .pathsep )[:- 1 ])
1299
1297
os .environ ["UTILITIES_UNIT_TESTING" ] = "0"
1300
1298
os .environ ["UTILITIES_UNIT_TESTING_TOPOLOGY" ] = ""
1301
1299
import mock_tables .mock_single_asic
Original file line number Diff line number Diff line change @@ -267,5 +267,4 @@ def test_config_sflow_intf_sample_rate(self):
267
267
@classmethod
268
268
def teardown_class (cls ):
269
269
print ("TEARDOWN" )
270
- os .environ ["PATH" ] = os .pathsep .join (os .environ ["PATH" ].split (os .pathsep )[:- 1 ])
271
270
os .environ ["UTILITIES_UNIT_TESTING" ] = "0"
Original file line number Diff line number Diff line change @@ -61,5 +61,4 @@ def test_single_intf_current_mode(self):
61
61
@classmethod
62
62
def teardown_class (cls ):
63
63
print ("TEARDOWN" )
64
- os .environ ["PATH" ] = os .pathsep .join (os .environ ["PATH" ].split (os .pathsep )[:- 1 ])
65
64
os .environ ["UTILITIES_UNIT_TESTING" ] = "0"
Original file line number Diff line number Diff line change @@ -54,5 +54,4 @@ def test_summary(self):
54
54
@classmethod
55
55
def teardown_class (cls ):
56
56
print ("TEARDOWN" )
57
- os .environ ["PATH" ] = os .pathsep .join (os .environ ["PATH" ].split (os .pathsep )[:- 1 ])
58
57
os .environ ["UTILITIES_UNIT_TESTING" ] = "0"
Original file line number Diff line number Diff line change 1
- #! /usr/bin/python -u
2
-
3
1
import sys
4
2
import os
5
3
Original file line number Diff line number Diff line change 1
- #! /usr/bin/python -u
2
- # date: 07/12/17
3
-
4
1
import click
5
2
import subprocess
6
3
You can’t perform that action at this time.
0 commit comments