Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PVST Feature commit #3567

Merged
merged 106 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
379a01f
PVST co pr commit
divyachandralekha Oct 2, 2024
28e728b
PVST co pr commit
divyachandralekha Oct 2, 2024
9933457
Trigger Pipelines
ridahanif96 Oct 15, 2024
38fdf49
Fix for pre-commit
ridahanif96 Oct 17, 2024
d1f60c8
Merge remote-tracking branch 'origin/master' into pvst_co_pr
divyachandralekha Oct 24, 2024
bfe0807
Fix pre-commit failures
divyachandralekha Oct 24, 2024
cd6bd65
fix pre-commit failures
divyachandralekha Oct 26, 2024
7b09ddf
fix pre-commit failures
divyachandralekha Oct 26, 2024
a055aa7
fix pre-commit failures
divyachandralekha Oct 26, 2024
d5aea62
pre-commit fixes
divyachandralekha Oct 27, 2024
76f0ac6
pre-commit fixes
divyachandralekha Oct 27, 2024
4626222
pre-commit fixes
divyachandralekha Oct 27, 2024
67e0e67
pre-commit fixes
divyachandralekha Oct 27, 2024
8dd11d6
fix precommit failures
divyachandralekha Oct 28, 2024
8c09f61
fix precommit failures
divyachandralekha Oct 28, 2024
fa0dbe3
fix precommit failures
divyachandralekha Oct 28, 2024
d88fc97
fix precommit failures
divyachandralekha Oct 28, 2024
75b1970
fix precommit failures
divyachandralekha Oct 28, 2024
3800f6a
fix precommit failures
divyachandralekha Oct 28, 2024
49e517f
fix precommit failures
divyachandralekha Oct 28, 2024
88629ff
fix precommit failures
divyachandralekha Oct 28, 2024
76a51e0
fix precommit failures
wajahatrazi Oct 28, 2024
133c568
Fix stp test failures
divyachandralekha Oct 28, 2024
3bf4ffd
Fix stp test failures
divyachandralekha Oct 28, 2024
4571743
Fix stp test failures
divyachandralekha Oct 28, 2024
1d595bf
fix precommit failures
wajahatrazi Oct 28, 2024
64478b9
fix precommit failures
wajahatrazi Oct 28, 2024
6c586ee
fix precommit failures
wajahatrazi Oct 28, 2024
96a8ff8
Fix stp test failures
divyachandralekha Oct 29, 2024
5fa1a7c
Fixing spacing errors in stp_test
wajahatrazi Oct 29, 2024
500e3c0
Fix stp test failures
divyachandralekha Oct 29, 2024
4c50260
Fix stp test failures
divyachandralekha Oct 29, 2024
05dcf6a
Fix stp test failures
divyachandralekha Oct 29, 2024
7eaca9e
Fix stp test failures
divyachandralekha Oct 29, 2024
cd7ea21
Fix stp test failures
divyachandralekha Oct 29, 2024
fb7f415
Fix stp test failures
divyachandralekha Oct 29, 2024
f3d07b1
Merge branch 'master' into pvst_co_pr
divyachandralekha Oct 30, 2024
d02fd95
Remove svscode settings
divyachandralekha Nov 2, 2024
5f0827a
Merge branch 'master' into pvst_co_pr
divyachandralekha Nov 5, 2024
fa5f354
Addressed review comments
divyachandralekha Nov 5, 2024
8ddc44e
Addressed review comments
divyachandralekha Nov 5, 2024
5931040
Addressed review comments
divyachandralekha Nov 5, 2024
ccbc04a
Addressed review comments
divyachandralekha Nov 5, 2024
ba3ffd6
Fix test errors
divyachandralekha Nov 5, 2024
4f1be82
Fix test issues
divyachandralekha Nov 6, 2024
21a851b
Fix test issues
divyachandralekha Nov 6, 2024
9c47715
Fix test issues
divyachandralekha Nov 6, 2024
e5ad160
Fix test issues
divyachandralekha Nov 6, 2024
b17067e
fix test failures
divyachandralekha Nov 6, 2024
47b9499
fix test failures
divyachandralekha Nov 6, 2024
68bf143
fix test failures
divyachandralekha Nov 6, 2024
6ec37d0
fix test failures
divyachandralekha Nov 6, 2024
4af96ec
fix test failures
divyachandralekha Nov 6, 2024
13895e5
fix test failures
divyachandralekha Nov 6, 2024
e46a9ea
fix test failures
divyachandralekha Nov 6, 2024
695b865
fix test failures
divyachandralekha Nov 6, 2024
9a12161
fix test failures
divyachandralekha Nov 6, 2024
6dda3f5
fix test failures
divyachandralekha Nov 6, 2024
d44931a
fix test failures
divyachandralekha Nov 6, 2024
8fef26b
fix test failures
divyachandralekha Nov 6, 2024
a97c1a6
fix test failures
divyachandralekha Nov 6, 2024
1e42816
Fix errors
divyachandralekha Nov 8, 2024
d181c15
Fix errors
divyachandralekha Nov 8, 2024
c3a786b
Fix errors
divyachandralekha Nov 8, 2024
c354f53
Fix errors
divyachandralekha Nov 8, 2024
8f443d4
Fix errors
divyachandralekha Nov 8, 2024
96da44b
Fix errors
divyachandralekha Nov 8, 2024
2e87b63
Fix errors
divyachandralekha Nov 8, 2024
096e6d9
Fix errors
divyachandralekha Nov 8, 2024
639bb41
Fix errors
divyachandralekha Nov 8, 2024
0e0c41c
Fix failures
divyachandralekha Nov 9, 2024
1637645
Fix failures
divyachandralekha Nov 9, 2024
57f8a23
Fix failures
divyachandralekha Nov 9, 2024
fa67cd4
Fix failures
divyachandralekha Nov 9, 2024
1957c34
Fix failures
divyachandralekha Nov 9, 2024
0ca326d
Fix failures
divyachandralekha Nov 9, 2024
6be80bf
Fix errors
divyachandralekha Nov 9, 2024
c098c14
Fix errors
divyachandralekha Nov 9, 2024
f881659
Fix errors
divyachandralekha Nov 9, 2024
bce680b
Merge branch 'master' into pvst_co_pr
divyachandralekha Nov 9, 2024
41d221f
Fix errors
divyachandralekha Nov 9, 2024
c19f915
Fix errors
divyachandralekha Nov 9, 2024
ffb4c0f
fix errors
divyachandralekha Nov 10, 2024
0dfde87
fix errors
divyachandralekha Nov 10, 2024
2b1e507
Fix errors
divyachandralekha Nov 11, 2024
6650c39
Fix errors
divyachandralekha Nov 11, 2024
6534f01
Fix errors
divyachandralekha Nov 11, 2024
57dbeaa
Fix errors
divyachandralekha Nov 11, 2024
3b657a1
Fix errors
divyachandralekha Nov 11, 2024
acf451f
Fix errors
divyachandralekha Nov 11, 2024
38e98d7
Fix errors
divyachandralekha Nov 11, 2024
767592b
Fix errors
divyachandralekha Nov 11, 2024
295ce6d
Fix errors
divyachandralekha Nov 11, 2024
9cd37a0
Fix errors
divyachandralekha Nov 11, 2024
8bf4da3
Fix errors
divyachandralekha Nov 11, 2024
68f1ea4
Fix errors
divyachandralekha Nov 11, 2024
03fe72b
Fix errors
divyachandralekha Nov 11, 2024
dd865e7
Fix errors
divyachandralekha Nov 11, 2024
90507a0
Fix errors
divyachandralekha Nov 11, 2024
e88999e
Fix errors
divyachandralekha Nov 11, 2024
1b3ffd0
Addressing review comments
divyachandralekha Nov 13, 2024
6e9e732
Addressing review comments
divyachandralekha Nov 13, 2024
0ba85bd
Addressing review comments
divyachandralekha Nov 13, 2024
1b03bdc
Addressing review comments
divyachandralekha Nov 13, 2024
0c19063
Addressing review comments
divyachandralekha Nov 13, 2024
5259964
Addressing review comments
divyachandralekha Nov 13, 2024
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
6 changes: 5 additions & 1 deletion clear/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from show.plugins.pbh import read_pbh_counters
from config.plugins.pbh import serialize_pbh_counters
from . import plugins

from . import stp
# This is from the aliases example:
# https://github.com/pallets/click/blob/57c6f09611fc47ca80db0bd010f05998b3c0aa95/examples/aliases/aliases.py
class Config(object):
Expand Down Expand Up @@ -145,6 +145,10 @@ def ipv6():
pass


# 'STP'
#
cli.add_command(stp.spanning_tree)

#
# Inserting BGP functionality into cli's clear parse-chain.
# BGP commands are determined by the routing-stack being elected.
Expand Down
46 changes: 46 additions & 0 deletions clear/stp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import click
import utilities_common.cli as clicommon

#
# This group houses Spanning_tree commands and subgroups
#


@click.group(cls=clicommon.AliasedGroup)
@click.pass_context
def spanning_tree(ctx):
'''Clear Spanning-tree counters'''
pass


@spanning_tree.group('statistics', cls=clicommon.AliasedGroup, invoke_without_command=True)
@click.pass_context
def stp_clr_stats(ctx):
if ctx.invoked_subcommand is None:
command = 'sudo stpctl clrstsall'
clicommon.run_command(command)


@stp_clr_stats.command('interface')
@click.argument('interface_name', metavar='<interface_name>', required=True)
@click.pass_context
def stp_clr_stats_intf(ctx, interface_name):
command = 'sudo stpctl clrstsintf ' + interface_name
clicommon.run_command(command)


@stp_clr_stats.command('vlan')
@click.argument('vlan_id', metavar='<vlan_id>', required=True)
@click.pass_context
def stp_clr_stats_vlan(ctx, vlan_id):
command = 'sudo stpctl clrstsvlan ' + vlan_id
clicommon.run_command(command)


@stp_clr_stats.command('vlan-interface')
@click.argument('vlan_id', metavar='<vlan_id>', required=True)
@click.argument('interface_name', metavar='<interface_name>', required=True)
@click.pass_context
def stp_clr_stats_vlan_intf(ctx, vlan_id, interface_name):
command = 'sudo stpctl clrstsvlanintf ' + vlan_id + ' ' + interface_name
clicommon.run_command(command)
7 changes: 5 additions & 2 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
from . import switchport
from . import dns
from . import bgp_cli

from . import stp

# mock masic APIs for unit test
try:
Expand Down Expand Up @@ -1434,7 +1434,10 @@ def config(ctx):
config.add_command(vlan.vlan)
config.add_command(vxlan.vxlan)

#add mclag commands
# add stp commands
config.add_command(stp.spanning_tree)

# add mclag commands
config.add_command(mclag.mclag)
config.add_command(mclag.mclag_member)
config.add_command(mclag.mclag_unique_ip)
Expand Down
Loading
Loading