From cb5c44fa348b3c4d9a9cf956761a08a2628d9067 Mon Sep 17 00:00:00 2001 From: sachendras <44847441+sachendras@users.noreply.github.com> Date: Fri, 30 Aug 2024 10:50:32 -0700 Subject: [PATCH] Adding canonical OC to config path Changing the config to the approach suggested in https://github.com/openconfig/featureprofiles/pull/3336 --- .../large_ip_packet_transmission/README.md | 36 +++++++++++++------ 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/feature/mtu/largeippacket/otg_tests/large_ip_packet_transmission/README.md b/feature/mtu/largeippacket/otg_tests/large_ip_packet_transmission/README.md index 97ebc4e1c64..ec472b57c46 100644 --- a/feature/mtu/largeippacket/otg_tests/large_ip_packet_transmission/README.md +++ b/feature/mtu/largeippacket/otg_tests/large_ip_packet_transmission/README.md @@ -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: