Skip to content

Commit

Permalink
STP: Set 'intf_to_neighbor' to False to prevent propagation to neighb…
Browse files Browse the repository at this point in the history
…or data (#1655)

Also: generalize STP test case to include various stp.enable: False cases
  • Loading branch information
jbemmel authored Dec 16, 2024
1 parent 28ffa76 commit f93b94d
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 78 deletions.
1 change: 1 addition & 0 deletions netsim/modules/stp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ attributes:
enable:
copy: global

intf_to_neighbor: False # By default, do not include STP attributes in neighbors
interface:
enable: bool
port_priority: { type: int, min_value: 0, max_value: 15 } # 4-bit value, default '8' if not set
Expand Down
4 changes: 0 additions & 4 deletions tests/topology/expected/lag-l2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ nodes:
neighbors:
- ifname: port-channel1
node: r2
stp:
enable: false
stp:
enable: false
type: lag
Expand Down Expand Up @@ -170,8 +168,6 @@ nodes:
neighbors:
- ifname: port-channel1
node: r1
stp:
enable: false
stp:
enable: false
type: lag
Expand Down
Loading

0 comments on commit f93b94d

Please sign in to comment.