Skip to content

Commit

Permalink
get version support added
Browse files Browse the repository at this point in the history
  • Loading branch information
biplamal committed May 30, 2024
1 parent a7d26dd commit 42d1ddc
Show file tree
Hide file tree
Showing 23 changed files with 50,970 additions and 49,652 deletions.
1 change: 1 addition & 0 deletions gnmi/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ OTG_YANG_FILES=(
models-yang/models/types/open-traffic-generator-types.yang
models-yang/models/dhcp/v4client/open-traffic-generator-dhcpv4client.yang
models-yang/models/dhcp/v4server/open-traffic-generator-dhcpv4server.yang
models-yang/models/platform/open-traffic-generator-platform.yang
)

go run github.com/openconfig/ygnmi/app/ygnmi generator \
Expand Down
104 changes: 64 additions & 40 deletions gnmi/oc/networkinstance/networkinstance-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2190,12 +2190,16 @@ func (n *NetworkInstancePathAny) SegmentRouting() *NetworkInstance_SegmentRoutin
// address families enabled, the protocol=BGP,
// address-family=IPv4 table is created by the system. The
//
// removal of the table should not require additional or
// explicit configurations
// Defining module: "openconfig-network-instance"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "tables/table"
// Path from root: "/network-instances/network-instance/tables/table"
// removal of the table should not require additional or
// explicit configurations.
//
// Users cannot create or delete tables. Instead a user may
// configure table-connections which reference these tables.
//
// Defining module: "openconfig-network-instance"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "tables/table"
// Path from root: "/network-instances/network-instance/tables/table"
func (n *NetworkInstancePath) TableAny() *NetworkInstance_TablePathAny {
ps := &NetworkInstance_TablePathAny{
NodePath: ygnmi.NewNodePath(
Expand Down Expand Up @@ -2226,12 +2230,16 @@ func (n *NetworkInstancePath) TableAny() *NetworkInstance_TablePathAny {
// address families enabled, the protocol=BGP,
// address-family=IPv4 table is created by the system. The
//
// removal of the table should not require additional or
// explicit configurations
// Defining module: "openconfig-network-instance"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "tables/table"
// Path from root: "/network-instances/network-instance/tables/table"
// removal of the table should not require additional or
// explicit configurations.
//
// Users cannot create or delete tables. Instead a user may
// configure table-connections which reference these tables.
//
// Defining module: "openconfig-network-instance"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "tables/table"
// Path from root: "/network-instances/network-instance/tables/table"
func (n *NetworkInstancePathAny) TableAny() *NetworkInstance_TablePathAny {
ps := &NetworkInstance_TablePathAny{
NodePath: ygnmi.NewNodePath(
Expand Down Expand Up @@ -2276,15 +2284,19 @@ func (n *NetworkInstance_TablePathAny) WithAddressFamily(AddressFamily oc.E_Type
// address families enabled, the protocol=BGP,
// address-family=IPv4 table is created by the system. The
//
// removal of the table should not require additional or
// explicit configurations
// Defining module: "openconfig-network-instance"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "tables/table"
// Path from root: "/network-instances/network-instance/tables/table"
// removal of the table should not require additional or
// explicit configurations.
//
// Users cannot create or delete tables. Instead a user may
// configure table-connections which reference these tables.
//
// Protocol: oc.E_PolicyTypes_INSTALL_PROTOCOL_TYPE
// AddressFamily: oc.E_Types_ADDRESS_FAMILY
// Defining module: "openconfig-network-instance"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "tables/table"
// Path from root: "/network-instances/network-instance/tables/table"
//
// Protocol: oc.E_PolicyTypes_INSTALL_PROTOCOL_TYPE
// AddressFamily: oc.E_Types_ADDRESS_FAMILY
func (n *NetworkInstancePath) Table(Protocol oc.E_PolicyTypes_INSTALL_PROTOCOL_TYPE, AddressFamily oc.E_Types_ADDRESS_FAMILY) *NetworkInstance_TablePath {
ps := &NetworkInstance_TablePath{
NodePath: ygnmi.NewNodePath(
Expand Down Expand Up @@ -2315,15 +2327,19 @@ func (n *NetworkInstancePath) Table(Protocol oc.E_PolicyTypes_INSTALL_PROTOCOL_T
// address families enabled, the protocol=BGP,
// address-family=IPv4 table is created by the system. The
//
// removal of the table should not require additional or
// explicit configurations
// Defining module: "openconfig-network-instance"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "tables/table"
// Path from root: "/network-instances/network-instance/tables/table"
// removal of the table should not require additional or
// explicit configurations.
//
// Users cannot create or delete tables. Instead a user may
// configure table-connections which reference these tables.
//
// Defining module: "openconfig-network-instance"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "tables/table"
// Path from root: "/network-instances/network-instance/tables/table"
//
// Protocol: oc.E_PolicyTypes_INSTALL_PROTOCOL_TYPE
// AddressFamily: oc.E_Types_ADDRESS_FAMILY
// Protocol: oc.E_PolicyTypes_INSTALL_PROTOCOL_TYPE
// AddressFamily: oc.E_Types_ADDRESS_FAMILY
func (n *NetworkInstancePathAny) Table(Protocol oc.E_PolicyTypes_INSTALL_PROTOCOL_TYPE, AddressFamily oc.E_Types_ADDRESS_FAMILY) *NetworkInstance_TablePathAny {
ps := &NetworkInstance_TablePathAny{
NodePath: ygnmi.NewNodePath(
Expand Down Expand Up @@ -2354,12 +2370,16 @@ func (n *NetworkInstancePathAny) Table(Protocol oc.E_PolicyTypes_INSTALL_PROTOCO
// address families enabled, the protocol=BGP,
// address-family=IPv4 table is created by the system. The
//
// removal of the table should not require additional or
// explicit configurations
// Defining module: "openconfig-network-instance"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "tables/table"
// Path from root: "/network-instances/network-instance/tables/table"
// removal of the table should not require additional or
// explicit configurations.
//
// Users cannot create or delete tables. Instead a user may
// configure table-connections which reference these tables.
//
// Defining module: "openconfig-network-instance"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "tables/table"
// Path from root: "/network-instances/network-instance/tables/table"
func (n *NetworkInstancePath) TableMap() *NetworkInstance_TablePathMap {
ps := &NetworkInstance_TablePathMap{
NodePath: ygnmi.NewNodePath(
Expand Down Expand Up @@ -2390,12 +2410,16 @@ func (n *NetworkInstancePath) TableMap() *NetworkInstance_TablePathMap {
// address families enabled, the protocol=BGP,
// address-family=IPv4 table is created by the system. The
//
// removal of the table should not require additional or
// explicit configurations
// Defining module: "openconfig-network-instance"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "tables/table"
// Path from root: "/network-instances/network-instance/tables/table"
// removal of the table should not require additional or
// explicit configurations.
//
// Users cannot create or delete tables. Instead a user may
// configure table-connections which reference these tables.
//
// Defining module: "openconfig-network-instance"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "tables/table"
// Path from root: "/network-instances/network-instance/tables/table"
func (n *NetworkInstancePathAny) TableMap() *NetworkInstance_TablePathMapAny {
ps := &NetworkInstance_TablePathMapAny{
NodePath: ygnmi.NewNodePath(
Expand Down
Loading

0 comments on commit 42d1ddc

Please sign in to comment.