Skip to content

Commit

Permalink
Update auto generated go snappi
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 7, 2023
1 parent 7f88481 commit c39ebe4
Show file tree
Hide file tree
Showing 8 changed files with 24,643 additions and 20,939 deletions.
2,848 changes: 2,331 additions & 517 deletions gosnappi/gosnappi.go

Large diffs are not rendered by default.

37,097 changes: 19,069 additions & 18,028 deletions gosnappi/otg/otg.pb.go

Large diffs are not rendered by default.

146 changes: 145 additions & 1 deletion gosnappi/otg/otg.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Open Traffic Generator API 0.13.2
/* Open Traffic Generator API 0.13.3
* Open Traffic Generator API defines a model-driven, vendor-neutral and standard
* interface for emulating layer 2-7 network devices and generating test traffic.
*
Expand Down Expand Up @@ -2428,6 +2428,15 @@ message BgpAdvanced {
// peer.
// default = False
optional bool passive_mode = 6;

// The TCP port number on which to accept BGP connections from the remote peer.
// default = 179
optional uint32 listen_port = 7;

// Destination TCP port number of the BGP peer when initiating a
// session from the local BGP peer.
// default = 179
optional uint32 neighbor_port = 8;
}

// Configuration for BGP capability settings.
Expand Down Expand Up @@ -6805,6 +6814,8 @@ message StateProtocol {
all = 1;
route = 2;
lacp = 3;
bgp = 4;
isis = 5;
}
}
// Description missing in models
Expand All @@ -6819,6 +6830,12 @@ message StateProtocol {

// Description missing in models
StateProtocolLacp lacp = 4;

// Description missing in models
StateProtocolBgp bgp = 5;

// Description missing in models
StateProtocolIsis isis = 6;
}

// Sets the link of configured ports.
Expand Down Expand Up @@ -6976,6 +6993,7 @@ message StateProtocolLacp {
enum Enum {
unspecified = 0;
admin = 1;
member_ports = 2;
}
}
// Description missing in models
Expand All @@ -6984,6 +7002,9 @@ message StateProtocolLacp {

// Description missing in models
StateProtocolLacpAdmin admin = 2;

// Description missing in models
StateProtocolLacpMemberPorts member_ports = 3;
}

// Sets admin state of LACP configured on LAG members
Expand Down Expand Up @@ -7015,6 +7036,129 @@ message StateProtocolLacpAdmin {
optional State.Enum state = 2;
}

// Sets state of LACP member ports configured on LAG.
message StateProtocolLacpMemberPorts {

// The names of LAG members (ports) for which the state has to be applied. An empty
// or null list will control all LAG members.
//
// x-constraint:
// - /components/schemas/Port/properties/name
//
//
// x-constraint:
// - /components/schemas/Port/properties/name
//
repeated string lag_member_names = 1;

message State {
enum Enum {
unspecified = 0;
up = 1;
down = 2;
}
}
// The desired LACP member port state.
// required = true
optional State.Enum state = 2;
}

// Sets state of configured BGP peers.
message StateProtocolBgp {

message Choice {
enum Enum {
unspecified = 0;
peers = 1;
}
}
// Description missing in models
// required = true
optional Choice.Enum choice = 1;

// Description missing in models
StateProtocolBgpPeers peers = 2;
}

// Sets state of configured BGP peers.
message StateProtocolBgpPeers {

// The names of BGP peers for which the state has to be applied. An empty or null list
// will control all BGP peers.
//
// x-constraint:
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
//
// x-constraint:
// - /components/schemas/Bgp.V4Peer/properties/name
// - /components/schemas/Bgp.V6Peer/properties/name
//
repeated string peer_names = 1;

message State {
enum Enum {
unspecified = 0;
up = 1;
down = 2;
}
}
// The desired state of BGP peer. If the desired state is 'up', underlying IP interface(s)
// would be brought up automatically (if not already up), would attempt to bring up
// the BGP session(s) and advertise route(s), if configured. If the desired state is
// 'down', BGP session(s) would be brought down.
// required = true
optional State.Enum state = 2;
}

// Sets state of configured ISIS routers.
message StateProtocolIsis {

message Choice {
enum Enum {
unspecified = 0;
routers = 1;
}
}
// Description missing in models
// required = true
optional Choice.Enum choice = 1;

// Description missing in models
StateProtocolIsisRouters routers = 2;
}

// Sets state of configured ISIS routers.
message StateProtocolIsisRouters {

// The names of ISIS routers for which the state has to be applied. An empty or null
// list will control all ISIS routers.
//
// x-constraint:
// - /components/schemas/Device.IsisRouter/properties/name
//
//
// x-constraint:
// - /components/schemas/Device.IsisRouter/properties/name
//
repeated string router_names = 1;

message State {
enum Enum {
unspecified = 0;
up = 1;
down = 2;
}
}
// The desired state of ISIS router. If the desired state is 'up', would attempt to
// bring up the ISIS session(s) with respective peer(s) and advertise route(s), if configured.
// If the desired state is 'down', would bring down ISIS session(s) with respective
// peer(s).
// required = true
optional State.Enum state = 2;
}

// Request for triggering action against configured resources.
message ControlAction {

Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--prefer-binary
grpcio-tools~=1.35.0 ; python_version <= '3.6'
grpcio~=1.54.2 ; python_version > '3.6'
grpcio-tools~=1.54.2 ; python_version > '3.6'
grpcio-tools~=1.35.0 ; python_version <= '3.6'
grpcio~=1.35.0 ; python_version <= '3.6'
grpcio~=1.54.2 ; python_version > '3.6'
requests
PyYAML
protobuf~=4.23.3 ; python_version > '3.6'
protobuf~=3.15.0 ; python_version <= '3.6'
urllib3
PyYAML
requests
semantic_version
urllib3
5 changes: 5 additions & 0 deletions snappi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,11 @@
from .snappi import StateProtocolRoute
from .snappi import StateProtocolLacp
from .snappi import StateProtocolLacpAdmin
from .snappi import StateProtocolLacpMemberPorts
from .snappi import StateProtocolBgp
from .snappi import StateProtocolBgpPeers
from .snappi import StateProtocolIsis
from .snappi import StateProtocolIsisRouters
from .snappi import StateTraffic
from .snappi import StateTrafficFlowTransmit
from .snappi import ControlAction
Expand Down
Loading

0 comments on commit c39ebe4

Please sign in to comment.