Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
57 changes: 0 additions & 57 deletions config/plugins/barefoot.py

This file was deleted.

39 changes: 0 additions & 39 deletions doc/Command-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@
* [Platform Component Firmware config commands](#platform-component-firmware-config-commands)
* [Platform Component Firmware vendor specific behaviour](#platform-component-firmware-vendor-specific-behaviour)
* [Platform Specific Commands](#platform-specific-commands)
* [Mellanox Platform Specific Commands](#mellanox-platform-specific-commands)
* [Barefoot Platform Specific Commands](#barefoot-platform-specific-commands)
* [PortChannels](#portchannels)
* [PortChannel Show commands](#portchannel-show-commands)
* [PortChannel Config commands](#portchannel-config-commands)
Expand Down Expand Up @@ -6585,8 +6583,6 @@ Go Back To [Beginning of the document](#) or [Beginning of this section](#platfo

## Platform Specific Commands

### Mellanox Platform Specific Commands

There are few commands that are platform specific. Mellanox has used this feature and implemented Mellanox specific commands as follows.

**show platform mlnx sniffer**
Expand Down Expand Up @@ -6656,41 +6652,6 @@ In order to avoid that confirmation the -y / --yes option should be used.
NOTE: In order to avoid that confirmation the -y / --yes option should be used.
```

### Barefoot Platform Specific Commands

**show platform barefoot profile**

This command displays active P4 profile and lists available ones.

- Usage:
```
show platform barefoot profile
```

- Example:
```
admin@sonic:~$ show platform barefoot profile
Current profile: x1
Available profile(s):
x1
x2
```

**config platform barefoot profile**

This command sets P4 profile.

- Usage:
```
config platform barefoot profile <p4_profile> [-y|--yes]
```

- Example:
```
admin@sonic:~$ sudo config platform barefoot profile x1
Swss service will be restarted, continue? [y/N]: y
```

Go Back To [Beginning of the document](#) or [Beginning of this section](#platform-specific-commands)


Expand Down
1 change: 1 addition & 0 deletions generic_config_updater/gu_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ def _find_leafref_paths(self, path, config):
ref_paths.append(ref_path)
ref_paths_set.add(ref_path)

ref_paths.sort()
return ref_paths

def _get_inner_leaf_xpaths(self, xpath, sy):
Expand Down
47 changes: 0 additions & 47 deletions show/plugins/barefoot.py

This file was deleted.

18 changes: 9 additions & 9 deletions tests/generic_config_updater/gu_common_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,13 +639,13 @@ def test_find_ref_paths__path_is_table__returns_ref_paths(self):
# Arrange
path = "/PORT"
expected = [
"/ACL_TABLE/NO-NSW-PACL-V4/ports/0",
"/VLAN_MEMBER/Vlan1000|Ethernet0",
"/ACL_TABLE/DATAACL/ports/0",
"/ACL_TABLE/EVERFLOWV6/ports/0",
"/VLAN_MEMBER/Vlan1000|Ethernet4",
"/ACL_TABLE/EVERFLOW/ports/0",
"/ACL_TABLE/EVERFLOWV6/ports/0",
"/ACL_TABLE/EVERFLOWV6/ports/1",
"/ACL_TABLE/NO-NSW-PACL-V4/ports/0",
"/VLAN_MEMBER/Vlan1000|Ethernet0",
"/VLAN_MEMBER/Vlan1000|Ethernet4",
"/VLAN_MEMBER/Vlan1000|Ethernet8"
]

Expand All @@ -659,14 +659,14 @@ def test_find_ref_paths__whole_config_path__returns_all_refs(self):
# Arrange
path = ""
expected = [
"/VLAN_MEMBER/Vlan1000|Ethernet0",
"/VLAN_MEMBER/Vlan1000|Ethernet4",
"/VLAN_MEMBER/Vlan1000|Ethernet8",
"/ACL_TABLE/NO-NSW-PACL-V4/ports/0",
"/ACL_TABLE/DATAACL/ports/0",
"/ACL_TABLE/EVERFLOWV6/ports/0",
"/ACL_TABLE/EVERFLOW/ports/0",
"/ACL_TABLE/EVERFLOWV6/ports/0",
"/ACL_TABLE/EVERFLOWV6/ports/1",
"/ACL_TABLE/NO-NSW-PACL-V4/ports/0",
"/VLAN_MEMBER/Vlan1000|Ethernet0",
"/VLAN_MEMBER/Vlan1000|Ethernet4",
"/VLAN_MEMBER/Vlan1000|Ethernet8",
]

# Act
Expand Down