Skip to content

[Nexthop][fboss2-dev] Add integration tests for IpInIpTunnel.dstIpMask and srcIpMask - #1773

Closed
abhinav-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:tunnel-ip-mask
Closed

abhinav-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:tunnel-ip-mask

Conversation

@abhinav-nexthop

Copy link
Copy Markdown
Contributor

Pre-submission checklist

  • I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running pip install -r requirements-dev.txt && pre-commit install
  • pre-commit run

Summary

Adds TunnelIpInIpTest.DecapDestinationMask and
TunnelIpInIpTest.EncapDestinationMask, covering IpInIpTunnel.dstIpMask
as written by
config tunnel ip-in-ip encap|decap <id> destination <ip> mask <len>.

The CLI stores the prefix length as an IPv6 mask address
(/64 -> ffff:ffff:ffff:ffff::). The agent maps it differently per
direction: for encap it goes to the tunnel's dstIpMask in switch state,
for decap the agent swaps directions and stores it as srcIpMask.

Both tests call a shared fixture helper, checkTunnelMask(direction, attr),
which creates the tunnel with a /64 mask, checks the mask in the running
config and in the direction-specific switch-state field, checks the other
mask field stays unset in both, then deletes the tunnel and the underlay
VLAN it created.

Adds TunnelIpInIpTest.DecapSourceMask and
TunnelIpInIpTest.EncapSourceMask, covering IpInIpTunnel.srcIpMask as
written by config tunnel ip-in-ip encap|decap <id> source <ip> mask <len>.

Both use the same checkTunnelMask helper. For
encap the agent stores the mask as the tunnel's srcIpMask in switch
state; for decap it swaps directions and stores it as dstIpMask. Each
test checks the mask in the running config and the direction-specific
switch-state field, checks the other mask stays unset, and removes the
tunnel and its underlay VLAN.

Test Plan

Platform 1 test result
$ fboss2_integration_test --gtest_filter='TunnelIpInIpTest.DecapDestinationMask:TunnelIpInIpTest.EncapDestinationMask'

[ RUN      ] TunnelIpInIpTest.DecapDestinationMask
I1012 07:33:06.689078 11280 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:33:06.689112 11280 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:33:06.689155 11280 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:33:06.690773 11283 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:33:06.693887 11280 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:33:06.699437 11280 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:33:06.700237 11280 TunnelIpInIpTest.cpp:319] [Step 1] Creating decap tunnel integration-test-decap-dstmask with destination mask /64...
I1012 07:33:06.700241 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-dstmask destination 2001:db8::1 mask 64 ttl-mode pipe underlay-intf-id 2000
V1012 07:33:06.701290 11299 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.702349 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:06.703142 11300 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.718144 11280 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:33:06.719195 11280 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:33:06.719795 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dstmask
V1012 07:33:06.720706 11319 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.723860 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:06.724663 11322 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.737430 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:33:06.738314 11336 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.741180 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:06.741992 11339 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.753637 11280 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:33:06.754317 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dstmask
V1012 07:33:06.755208 11352 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.757360 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:06.758135 11355 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.761936 11280 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapDestinationMask (72 ms)
[ RUN      ] TunnelIpInIpTest.EncapDestinationMask
I1012 07:33:06.761960 11280 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:33:06.761966 11280 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:33:06.761996 11280 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:33:06.762870 11361 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:33:06.764748 11280 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:33:06.769550 11280 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:33:06.770270 11280 TunnelIpInIpTest.cpp:319] [Step 1] Creating encap tunnel integration-test-encap-dstmask with destination mask /64...
I1012 07:33:06.770275 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-dstmask destination 2001:db8::1 mask 64 source 2001:db8:cafe::5 underlay-intf-id 2000
V1012 07:33:06.771184 11369 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.772112 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:06.772917 11370 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.786031 11280 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:33:06.786922 11280 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:33:06.787403 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dstmask
V1012 07:33:06.788282 11387 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.791243 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:06.792038 11390 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.804140 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:33:06.805003 11404 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.807801 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:06.808598 11407 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.820141 11280 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:33:06.820869 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dstmask
V1012 07:33:06.821730 11420 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.823892 11280 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:06.824687 11423 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:06.828438 11280 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.EncapDestinationMask (66 ms)

result: PASS, config after run: CLEAN, service crashes: none

$ fboss2_integration_test --gtest_filter='TunnelIpInIpTest.DecapSourceMask:TunnelIpInIpTest.EncapSourceMask'

[ RUN      ] TunnelIpInIpTest.DecapSourceMask
I1012 07:31:58.272198 10729 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:31:58.272335 10729 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:31:58.272379 10729 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:31:58.273994 10732 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:31:58.276998 10729 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:31:58.282335 10729 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:31:58.283106 10729 TunnelIpInIpTest.cpp:319] [Step 1] Creating decap tunnel integration-test-decap-srcmask with source mask /64...
I1012 07:31:58.283112 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-srcmask destination 2001:db8::1 source 2001:db8:cafe::5 mask 64 ttl-mode pipe underlay-intf-id 2000
V1012 07:31:58.284145 10748 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.285214 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:58.286009 10749 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.299828 10729 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:31:58.300874 10729 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:31:58.301402 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-srcmask
V1012 07:31:58.302315 10768 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.305634 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:58.306496 10771 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.318626 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:31:58.319516 10785 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.322441 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:58.323232 10788 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.334906 10729 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:31:58.335614 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-srcmask
V1012 07:31:58.336504 10801 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.338674 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:58.339505 10804 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.343358 10729 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapSourceMask (71 ms)
[ RUN      ] TunnelIpInIpTest.EncapSourceMask
I1012 07:31:58.343383 10729 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:31:58.343390 10729 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:31:58.343420 10729 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:31:58.344294 10810 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:31:58.345971 10729 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:31:58.350433 10729 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:31:58.351139 10729 TunnelIpInIpTest.cpp:319] [Step 1] Creating encap tunnel integration-test-encap-srcmask with source mask /64...
I1012 07:31:58.351144 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-srcmask destination 2001:db8::1 source 2001:db8:cafe::5 mask 64 underlay-intf-id 2000
V1012 07:31:58.352051 10818 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.353001 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:58.353787 10819 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.366087 10729 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:31:58.367041 10729 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:31:58.367598 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-srcmask
V1012 07:31:58.368500 10836 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.371479 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:58.372275 10839 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.384402 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:31:58.385292 10853 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.388130 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:58.388933 10856 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.400302 10729 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:31:58.401015 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-srcmask
V1012 07:31:58.401908 10869 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.404122 10729 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:58.404921 10872 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:58.408662 10729 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.EncapSourceMask (65 ms)

result: PASS, config after run: CLEAN, service crashes: none
Platform 2 test result
$ fboss2_integration_test --gtest_filter='TunnelIpInIpTest.DecapDestinationMask:TunnelIpInIpTest.EncapDestinationMask'

[ RUN      ] TunnelIpInIpTest.DecapDestinationMask
I1012 07:33:08.918683 46164 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:33:08.918720 46164 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:33:08.918762 46164 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:33:08.920381 46167 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:33:08.923623 46164 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:33:08.929011 46164 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:33:08.929846 46164 TunnelIpInIpTest.cpp:319] [Step 1] Creating decap tunnel integration-test-decap-dstmask with destination mask /64...
I1012 07:33:08.929851 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-dstmask destination 2001:db8::1 mask 64 ttl-mode pipe underlay-intf-id 2000
V1012 07:33:08.930878 46183 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.931977 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:08.932780 46184 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.950227 46164 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:33:08.951424 46164 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:33:08.951892 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dstmask
V1012 07:33:08.952831 46203 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.955971 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:08.956822 46206 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.969732 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:33:08.970629 46220 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.973727 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:08.974539 46223 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.986673 46164 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:33:08.987461 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dstmask
V1012 07:33:08.988354 46236 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.990653 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:08.991492 46239 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.995227 46164 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapDestinationMask (76 ms)
[ RUN      ] TunnelIpInIpTest.EncapDestinationMask
I1012 07:33:08.995253 46164 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:33:08.995261 46164 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:33:08.995289 46164 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:33:08.996180 46245 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:33:08.998558 46164 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:33:09.003059 46164 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:33:09.003897 46164 TunnelIpInIpTest.cpp:319] [Step 1] Creating encap tunnel integration-test-encap-dstmask with destination mask /64...
I1012 07:33:09.003901 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-dstmask destination 2001:db8::1 mask 64 source 2001:db8:cafe::5 underlay-intf-id 2000
V1012 07:33:09.004959 46253 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:09.005981 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:09.006791 46254 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:09.020517 46164 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:33:09.021404 46164 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:33:09.021786 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dstmask
V1012 07:33:09.022713 46271 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:09.025717 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:09.026581 46274 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:09.038095 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:33:09.038974 46288 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:09.041986 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:09.042812 46291 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:09.054559 46164 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:33:09.055254 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dstmask
V1012 07:33:09.056175 46305 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:09.059278 46164 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:09.060097 46308 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:09.063843 46164 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.EncapDestinationMask (68 ms)

result: PASS, config after run: CLEAN, service crashes: none

$ fboss2_integration_test --gtest_filter='TunnelIpInIpTest.DecapSourceMask:TunnelIpInIpTest.EncapSourceMask'

[ RUN      ] TunnelIpInIpTest.DecapSourceMask
I1012 07:31:59.349022 45128 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:31:59.349098 45128 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:31:59.349142 45128 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:31:59.350766 45131 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:31:59.353860 45128 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:31:59.359406 45128 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:31:59.360175 45128 TunnelIpInIpTest.cpp:319] [Step 1] Creating decap tunnel integration-test-decap-srcmask with source mask /64...
I1012 07:31:59.360180 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-srcmask destination 2001:db8::1 source 2001:db8:cafe::5 mask 64 ttl-mode pipe underlay-intf-id 2000
V1012 07:31:59.361115 45147 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.362197 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:59.362986 45148 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.379942 45128 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:31:59.381062 45128 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:31:59.381722 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-srcmask
V1012 07:31:59.382655 45167 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.385717 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:59.386569 45170 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.399078 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:31:59.399971 45184 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.402969 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:59.403764 45187 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.415414 45128 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:31:59.416047 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-srcmask
V1012 07:31:59.416936 45200 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.419128 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:59.419977 45203 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.423674 45128 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapSourceMask (74 ms)
[ RUN      ] TunnelIpInIpTest.EncapSourceMask
I1012 07:31:59.423697 45128 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:31:59.423704 45128 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:31:59.423728 45128 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:31:59.424583 45209 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:31:59.426433 45128 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:31:59.430976 45128 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:31:59.431752 45128 TunnelIpInIpTest.cpp:319] [Step 1] Creating encap tunnel integration-test-encap-srcmask with source mask /64...
I1012 07:31:59.431756 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-srcmask destination 2001:db8::1 source 2001:db8:cafe::5 mask 64 underlay-intf-id 2000
V1012 07:31:59.432657 45217 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.433686 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:59.434470 45218 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.447441 45128 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:31:59.448365 45128 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:31:59.448837 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-srcmask
V1012 07:31:59.449727 45235 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.452793 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:59.453608 45238 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.465282 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:31:59.466182 45252 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.469243 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:59.470095 45255 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.481717 45128 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:31:59.482404 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-srcmask
V1012 07:31:59.483305 45268 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.485709 45128 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:31:59.486551 45271 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:31:59.490440 45128 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.EncapSourceMask (66 ms)

result: PASS, config after run: CLEAN, service crashes: none
Platform 3 test result
$ fboss2_integration_test --gtest_filter='TunnelIpInIpTest.DecapDestinationMask:TunnelIpInIpTest.EncapDestinationMask'

[ RUN      ] TunnelIpInIpTest.DecapDestinationMask
I1012 07:33:13.813552 10418 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:33:13.813597 10418 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:33:13.813759 10418 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:33:13.816447 10421 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:33:13.824052 10418 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:33:13.847815 10418 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:33:13.855860 10418 TunnelIpInIpTest.cpp:319] [Step 1] Creating decap tunnel integration-test-decap-dstmask with destination mask /64...
I1012 07:33:13.855872 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-dstmask destination 2001:db8::1 mask 64 ttl-mode pipe underlay-intf-id 2000
V1012 07:33:13.857935 10437 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:13.867304 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:13.869302 10438 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:13.921981 10418 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:33:13.926147 10418 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:33:13.928970 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dstmask
V1012 07:33:13.930617 10457 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:13.950632 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:13.952674 10460 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:14.007063 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:33:14.008874 10474 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:14.029950 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:14.031950 10477 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:14.080291 10418 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:33:14.083616 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dstmask
V1012 07:33:14.085303 10490 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:14.097408 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:14.098985 10493 CmdHandler.h:222] host: localhost ip: ::1
[       OK ] TunnelIpInIpTest.DecapDestinationMask (298 ms)
[ RUN      ] TunnelIpInIpTest.EncapDestinationMask
I1012 07:33:14.112203 10418 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:33:14.112214 10418 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:33:14.112330 10418 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:33:14.114011 10499 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:33:14.120326 10418 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:33:14.141973 10418 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:33:14.150061 10418 TunnelIpInIpTest.cpp:319] [Step 1] Creating encap tunnel integration-test-encap-dstmask with destination mask /64...
I1012 07:33:14.150073 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-dstmask destination 2001:db8::1 mask 64 source 2001:db8:cafe::5 underlay-intf-id 2000
V1012 07:33:14.152026 10507 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:14.161322 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:14.163109 10508 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:14.216498 10418 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:33:14.220565 10418 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:33:14.223971 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dstmask
V1012 07:33:14.225521 10522 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:14.245580 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:14.247176 10525 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:14.346124 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:33:14.347673 10536 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:14.367351 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:14.369121 10539 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:14.419211 10418 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:33:14.423409 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dstmask
V1012 07:33:14.424952 10550 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:14.435609 10418 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:14.437191 10553 CmdHandler.h:222] host: localhost ip: ::1
[       OK ] TunnelIpInIpTest.EncapDestinationMask (336 ms)

result: PASS, config after run: CLEAN, service crashes: none

$ fboss2_integration_test --gtest_filter='TunnelIpInIpTest.DecapSourceMask:TunnelIpInIpTest.EncapSourceMask'

[ RUN      ] TunnelIpInIpTest.DecapSourceMask
I1012 07:32:01.859542  9881 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:32:01.859587  9881 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:32:01.859732  9881 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:32:01.862422  9884 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:32:01.870462  9881 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:32:01.893212  9881 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:32:01.900729  9881 TunnelIpInIpTest.cpp:319] [Step 1] Creating decap tunnel integration-test-decap-srcmask with source mask /64...
I1012 07:32:01.900737  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-srcmask destination 2001:db8::1 source 2001:db8:cafe::5 mask 64 ttl-mode pipe underlay-intf-id 2000
V1012 07:32:01.902856  9900 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:01.913156  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:01.915027  9901 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:01.968293  9881 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:32:01.972606  9881 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:32:01.976299  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-srcmask
V1012 07:32:01.977970  9920 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:01.997235  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:01.999190  9923 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:02.056255  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:32:02.057973  9937 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:02.079457  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:02.081344  9940 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:02.132483  9881 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:32:02.136642  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-srcmask
V1012 07:32:02.138302  9953 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:02.150482  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:02.152179  9956 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:02.164279  9881 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapSourceMask (304 ms)
[ RUN      ] TunnelIpInIpTest.EncapSourceMask
I1012 07:32:02.164319  9881 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:32:02.164336  9881 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:32:02.164557  9881 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:32:02.166286  9962 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:32:02.172545  9881 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:32:02.196058  9881 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:32:02.203646  9881 TunnelIpInIpTest.cpp:319] [Step 1] Creating encap tunnel integration-test-encap-srcmask with source mask /64...
I1012 07:32:02.203654  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-srcmask destination 2001:db8::1 source 2001:db8:cafe::5 mask 64 underlay-intf-id 2000
V1012 07:32:02.205745  9970 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:02.215539  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:02.217278  9971 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:03.062528  9881 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:32:03.067547  9881 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:32:03.071339  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-srcmask
V1012 07:32:03.072893  9986 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:03.092785  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:03.094476  9989 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:03.151126  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:32:03.152795 10000 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:03.172410  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:03.174282 10003 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:03.223537  9881 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:32:03.227466  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-srcmask
V1012 07:32:03.229009 10014 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:03.240617  9881 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:03.242269 10017 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:03.254594  9881 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.EncapSourceMask (1090 ms)

result: PASS, config after run: CLEAN, service crashes: none
Platform 4 test result
$ fboss2_integration_test --gtest_filter='TunnelIpInIpTest.DecapDestinationMask:TunnelIpInIpTest.EncapDestinationMask'

[ RUN      ] TunnelIpInIpTest.DecapDestinationMask
I1012 07:33:07.967745 11301 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:33:07.967779 11301 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:33:07.967817 11301 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:33:07.969406 11304 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:33:07.972634 11301 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:33:07.978486 11301 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:33:07.979286 11301 TunnelIpInIpTest.cpp:319] [Step 1] Creating decap tunnel integration-test-decap-dstmask with destination mask /64...
I1012 07:33:07.979291 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-dstmask destination 2001:db8::1 mask 64 ttl-mode pipe underlay-intf-id 2000
V1012 07:33:07.980306 11320 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:07.981364 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:07.982164 11321 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:07.996831 11301 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:33:07.998016 11301 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:33:07.998568 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dstmask
V1012 07:33:07.999475 11340 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.002536 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:08.003376 11343 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.015767 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:33:08.016659 11357 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.019551 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:08.020374 11360 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.032137 11301 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:33:08.032838 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dstmask
V1012 07:33:08.033719 11373 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.035888 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:08.036710 11376 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.040569 11301 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapDestinationMask (72 ms)
[ RUN      ] TunnelIpInIpTest.EncapDestinationMask
I1012 07:33:08.040596 11301 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:33:08.040603 11301 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:33:08.040631 11301 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:33:08.041512 11382 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:33:08.043285 11301 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:33:08.047809 11301 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:33:08.048587 11301 TunnelIpInIpTest.cpp:319] [Step 1] Creating encap tunnel integration-test-encap-dstmask with destination mask /64...
I1012 07:33:08.048592 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-dstmask destination 2001:db8::1 mask 64 source 2001:db8:cafe::5 underlay-intf-id 2000
V1012 07:33:08.049638 11390 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.050609 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:08.051406 11391 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.064019 11301 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:33:08.064930 11301 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:33:08.065442 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dstmask
V1012 07:33:08.066352 11408 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.069334 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:08.070179 11411 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.082223 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:33:08.083116 11425 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.086046 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:08.086874 11428 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.098115 11301 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:33:08.098770 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dstmask
V1012 07:33:08.099639 11441 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.102113 11301 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:33:08.102901 11444 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:33:08.106762 11301 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.EncapDestinationMask (66 ms)

result: PASS, config after run: CLEAN, service crashes: none

$ fboss2_integration_test --gtest_filter='TunnelIpInIpTest.DecapSourceMask:TunnelIpInIpTest.EncapSourceMask'

[ RUN      ] TunnelIpInIpTest.DecapSourceMask
I1012 07:32:00.281591 10746 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:32:00.281674 10746 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:32:00.281715 10746 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:32:00.283349 10749 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:32:00.286718 10746 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:32:00.292587 10746 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:32:00.293389 10746 TunnelIpInIpTest.cpp:319] [Step 1] Creating decap tunnel integration-test-decap-srcmask with source mask /64...
I1012 07:32:00.293394 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-srcmask destination 2001:db8::1 source 2001:db8:cafe::5 mask 64 ttl-mode pipe underlay-intf-id 2000
V1012 07:32:00.294517 10765 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.295807 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:00.296624 10766 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.311464 10746 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:32:00.312452 10746 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:32:00.312970 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-srcmask
V1012 07:32:00.313874 10785 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.316949 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:00.317760 10788 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.330280 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:32:00.331176 10802 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.334153 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:00.334976 10805 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.346672 10746 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:32:00.347379 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-srcmask
V1012 07:32:00.348254 10818 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.350390 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:00.351183 10821 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.354927 10746 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapSourceMask (73 ms)
[ RUN      ] TunnelIpInIpTest.EncapSourceMask
I1012 07:32:00.354951 10746 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:32:00.354957 10746 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:32:00.354985 10746 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:32:00.355858 10827 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:32:00.357721 10746 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:32:00.362287 10746 Fboss2IntegrationTest.cpp:949] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:32:00.363055 10746 TunnelIpInIpTest.cpp:319] [Step 1] Creating encap tunnel integration-test-encap-srcmask with source mask /64...
I1012 07:32:00.363060 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-srcmask destination 2001:db8::1 source 2001:db8:cafe::5 mask 64 underlay-intf-id 2000
V1012 07:32:00.364116 10835 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.365097 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:00.365899 10836 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.378525 10746 TunnelIpInIpTest.cpp:326] [Step 2] Verifying the mask in running config and state...
I1012 07:32:00.379485 10746 TunnelIpInIpTest.cpp:358] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:32:00.379959 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-srcmask
V1012 07:32:00.380894 10853 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.383979 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:00.384786 10856 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.396981 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:32:00.397880 10870 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.400796 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:00.401631 10873 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.413451 10746 Fboss2IntegrationTest.cpp:925] Removed VLAN 2000 and its backing interface
I1012 07:32:00.414214 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-srcmask
V1012 07:32:00.415103 10886 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.417344 10746 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:32:00.418176 10889 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:32:00.421961 10746 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.EncapSourceMask (67 ms)

result: PASS, config after run: CLEAN, service crashes: none

@meta-cla meta-cla Bot added the CLA Signed label Oct 13, 2026
@abhinav-nexthop

Copy link
Copy Markdown
Contributor Author

Superseded by #1811, which combines this change with the other tests for the same file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant