Skip to content

Commit

Permalink
Adding canonical OC to config path
Browse files Browse the repository at this point in the history
Changing the config to the approach suggested in #3336
  • Loading branch information
sachendras authored Aug 30, 2024
1 parent c50ec4c commit cb5c44f
Showing 1 changed file with 26 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,32 @@ The below yaml defines the OC paths intended to be covered by this test. OC pat
```yaml
paths:
# Config Paths
/interfaces/interface/config/mtu:
/interfaces/interface/subinterfaces/subinterface/ipv4/config/mtu:
/interfaces/interface/subinterfaces/subinterface/ipv6/config/mtu:
# TODO: OpenConfig definition required for Tunnel protocol under interfaces/interfaces/interface/tunnel/ as GRE, IP-IP, GUE etc.
/interfaces/interface/tunnel/config/dst:
/interfaces/interface/tunnel/config/src:
/interfaces/interface/tunnel/ipv4/addresses/address/config/ip:
/interfaces/interface/tunnel/ipv4/addresses/address/config/prefix-length:
/interfaces/interface/tunnel/ipv6/addresses/address/config/ip:
/interfaces/interface/tunnel/ipv6/addresses/address/config/prefix-length:
openconfig-interfaces:
- interface: 'tunnel1_if_name'
config:
name: 'tunnel1_if_name'
tunnel: # configures the tunnel parameters
config:
src: 'tunnel1_outer_ip_src'
dst: 'tunnel1_outer_ip_dst'
ttl: 'tunnel1_outer_ttl'
gre-key: 'tunnel1_outer_gre_key'
ipv4:
config:
mtu: 'tunnel1_inner_mtu'
addresses:
- address:
config:
ip: 'tunnel1_interface_ipv4' # For tunnel decap destination and/or route next-hop
prefix-length: 'tunnel1_interface_ipv4_prefixlen'
ipv6:
config:
mtu: 'tunnel1_inner_mtu'
addresses:
- address:
config:
ip: 'tunnel1_interface_ipv6' # For tunnel decap destination and/or route next-hop
prefix-length: 'tunnel1_interface_ipv6_prefixlen'
# State Paths
/interfaces/interface/state/counters/in-pkts:
/interfaces/interface/state/counters/in-octets:
Expand Down

0 comments on commit cb5c44f

Please sign in to comment.