Skip to content

[Nexthop][fboss2-dev] Add integration tests for IpInIpTunnel.dscpMode and ecnMode - #1774

Closed
abhinav-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:tunnel-dscp-ecn-mode
Closed

abhinav-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:tunnel-dscp-ecn-mode

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.DecapDscpMode, TunnelIpInIpTest.EncapDscpMode,
TunnelIpInIpTest.DecapEcnMode and TunnelIpInIpTest.EncapEcnMode, covering
IpInIpTunnel.dscpMode and IpInIpTunnel.ecnMode as written by:

fboss2-dev config tunnel ip-in-ip <encap|decap> <id> dscp-mode <uniform|pipe>
fboss2-dev config tunnel ip-in-ip <encap|decap> <id> ecn-mode <uniform|pipe>

Unlike the tunnel masks, these modes are programmed into hardware:
SaiTunnelManager::addTunnel passes the DSCP mode as the SAI tunnel's
EncapDscpMode for encap and DecapDscpMode for decap, and pins the other
direction to uniform. All four tests share a fixture helper,
checkTunnelMode(direction, mode), which creates the tunnel with the mode set
to pipe (the agent default is uniform) and checks:

  • the mode is PIPE in the running config and in switch state
  • the new SAI tunnel object (show hw-object IPTUNNEL) has the expected
    attribute set and the other direction left at its default
  • after deleting the tunnel and its underlay VLAN, the SAI object and the
    interface are gone

For ECN:

  • Decap: pipe is programmed as the SAI tunnel's DecapEcnMode
    (COPY_FROM_OUTER), and the test checks it there.
  • Encap: the IP-in-IP SAI tunnel has no encap ECN attribute, so FBOSS stores
    the mode in config and switch state but never programs it. The test checks
    config/state and that DecapEcnMode stays STANDARD.

The cleanup runs from a scope guard, so a failed check still leaves the switch
as it was found. Tomahawk6 has no SAI tunnel support, so the tunnel suite does
not apply there.

Test Plan

Platform 1 test result
$ fboss2_integration_test

[ RUN      ] TunnelIpInIpTest.DecapDscpMode
I1009 07:02:57.847470  8449 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:02:57.847563  8449 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:02:57.847609  8449 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:02:57.849232  8452 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:02:57.851958  8449 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:02:57.857615  8449 Fboss2IntegrationTest.cpp:939] Created VLAN 2037 with interface 2037 for tunnel underlay
I1009 07:02:57.858445  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:57.859469  8466 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.860479  8449 TunnelIpInIpTest.cpp:134] [Step 1] Creating decap tunnel integration-test-decap-dscp with dscp-mode pipe...
I1009 07:02:57.860483  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-dscp destination 2001:db8::1 dscp-mode pipe ttl-mode pipe underlay-intf-id 2037
V1009 07:02:57.861325  8467 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.862344  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:57.863144  8468 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.876264  8449 TunnelIpInIpTest.cpp:141] [Step 2] Verifying dscp-mode in config, state and SAI...
I1009 07:02:57.877301  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:57.878320  8482 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.878957  8449 TunnelIpInIpTest.cpp:171] New SAI tunnel: TunnelSaiId(180388626433): (Type: 0, UnderlayInterface: 573365652841037864, OverlayInterface: 573365652841037864, DecapTtlMode: 1, DecapDscpMode: 1, DecapEcnMode: 0, EncapSrcIp: 0.0.0.0, EncapTtlMode: 0, EncapDscpMode: 0)
I1009 07:02:57.878961  8449 TunnelIpInIpTest.cpp:179] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:02:57.878963  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dscp
V1009 07:02:57.879762  8483 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.882762  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:57.883615  8486 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.896324  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2037
V1009 07:02:57.897207  8497 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.899982  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:57.900816  8500 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.913110  8449 Fboss2IntegrationTest.cpp:915] Removed VLAN 2037 and its backing interface
I1009 07:02:57.913703  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:57.914594  8511 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.915768  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dscp
V1009 07:02:57.916607  8512 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.918674  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:57.919521  8515 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.923315  8449 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapDscpMode (75 ms)
[ RUN      ] TunnelIpInIpTest.EncapDscpMode
I1009 07:02:57.923340  8449 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:02:57.923347  8449 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:02:57.923372  8449 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:02:57.924269  8521 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:02:57.925853  8449 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:02:57.930514  8449 Fboss2IntegrationTest.cpp:939] Created VLAN 2037 with interface 2037 for tunnel underlay
I1009 07:02:57.931310  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:57.932307  8527 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.932887  8449 TunnelIpInIpTest.cpp:134] [Step 1] Creating encap tunnel integration-test-encap-dscp with dscp-mode pipe...
I1009 07:02:57.932891  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-dscp destination 2001:db8::1 dscp-mode pipe source 2001:db8:cafe::6 underlay-intf-id 2037
V1009 07:02:57.933700  8528 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.934659  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:57.935446  8529 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.948110  8449 TunnelIpInIpTest.cpp:141] [Step 2] Verifying dscp-mode in config, state and SAI...
I1009 07:02:57.948838  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:57.949722  8541 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.950317  8449 TunnelIpInIpTest.cpp:171] New SAI tunnel: TunnelSaiId(180388626433): (Type: 0, UnderlayInterface: 573365652841037864, OverlayInterface: 573365652841037864, DecapTtlMode: 0, DecapDscpMode: 0, DecapEcnMode: 0, EncapSrcIp: 2001:db8:cafe::6, EncapTtlMode: 0, EncapDscpMode: 1)
I1009 07:02:57.950323  8449 TunnelIpInIpTest.cpp:179] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:02:57.950324  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dscp
V1009 07:02:57.951123  8542 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.954041  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:57.954870  8545 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.966784  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2037
V1009 07:02:57.967668  8556 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.970551  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:57.971391  8559 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.982753  8449 Fboss2IntegrationTest.cpp:915] Removed VLAN 2037 and its backing interface
I1009 07:02:57.983322  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:57.984186  8570 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.985472  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dscp
V1009 07:02:57.986307  8571 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.988498  8449 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:57.989304  8574 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:57.993180  8449 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.EncapDscpMode (69 ms)

$ fboss2_integration_test

[ RUN      ] TunnelIpInIpTest.DecapEcnMode
I1009 07:36:08.199848  9140 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:36:08.199855  9140 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:36:08.199881  9140 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:36:08.200744  9212 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:36:08.202311  9140 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:36:08.206903  9140 Fboss2IntegrationTest.cpp:939] Created VLAN 2037 with interface 2037 for tunnel underlay
I1009 07:36:08.207720  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:08.208756  9218 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.209407  9140 TunnelIpInIpTest.cpp:148] [Step 1] Creating decap tunnel integration-test-decap-ecn with ecn-mode pipe...
I1009 07:36:08.209412  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-ecn destination 2001:db8::1 ecn-mode pipe ttl-mode pipe underlay-intf-id 2037
V1009 07:36:08.210373  9219 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.211411  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.212247  9220 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.225681  9140 TunnelIpInIpTest.cpp:155] [Step 2] Verifying ecn-mode in config, state and SAI...
I1009 07:36:08.226440  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:08.227318  9232 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.228006  9140 TunnelIpInIpTest.cpp:186] New SAI tunnel: TunnelSaiId(180388626433): (Type: 0, UnderlayInterface: 573365652841037864, OverlayInterface: 573365652841037864, DecapTtlMode: 1, DecapDscpMode: 0, DecapEcnMode: 1, EncapSrcIp: 0.0.0.0, EncapTtlMode: 0, EncapDscpMode: 0)
I1009 07:36:08.228012  9140 TunnelIpInIpTest.cpp:198] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:36:08.228013  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-ecn
V1009 07:36:08.228801  9233 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.231763  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.232613  9236 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.244568  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2037
V1009 07:36:08.245462  9247 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.248358  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.249210  9250 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.261801  9140 Fboss2IntegrationTest.cpp:915] Removed VLAN 2037 and its backing interface
I1009 07:36:08.262393  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:08.263286  9261 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.264425  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-ecn
V1009 07:36:08.265266  9262 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.267445  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.268245  9265 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.272075  9140 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapEcnMode (72 ms)
[ RUN      ] TunnelIpInIpTest.EncapEcnMode
I1009 07:36:08.339745  9140 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:36:08.339751  9140 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:36:08.339780  9140 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:36:08.340663  9330 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:36:08.342234  9140 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:36:08.347380  9140 Fboss2IntegrationTest.cpp:939] Created VLAN 2037 with interface 2037 for tunnel underlay
I1009 07:36:08.348200  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:08.349219  9336 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.349783  9140 TunnelIpInIpTest.cpp:148] [Step 1] Creating encap tunnel integration-test-encap-ecn with ecn-mode pipe...
I1009 07:36:08.349788  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-ecn destination 2001:db8::1 ecn-mode pipe source 2001:db8:cafe::6 underlay-intf-id 2037
V1009 07:36:08.350580  9337 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.351540  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.352311  9338 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.364953  9140 TunnelIpInIpTest.cpp:155] [Step 2] Verifying ecn-mode in config, state and SAI...
I1009 07:36:08.365674  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:08.366539  9350 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.367202  9140 TunnelIpInIpTest.cpp:186] New SAI tunnel: TunnelSaiId(180388626433): (Type: 0, UnderlayInterface: 573365652841037864, OverlayInterface: 573365652841037864, DecapTtlMode: 0, DecapDscpMode: 0, DecapEcnMode: 0, EncapSrcIp: 2001:db8:cafe::6, EncapTtlMode: 0, EncapDscpMode: 0)
I1009 07:36:08.367206  9140 TunnelIpInIpTest.cpp:198] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:36:08.367208  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-ecn
V1009 07:36:08.368003  9351 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.370894  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.371679  9354 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.383620  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2037
V1009 07:36:08.384496  9365 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.387324  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.388151  9368 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.399606  9140 Fboss2IntegrationTest.cpp:915] Removed VLAN 2037 and its backing interface
I1009 07:36:08.400164  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:08.400995  9379 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.402100  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-ecn
V1009 07:36:08.402908  9380 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.404990  9140 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.405805  9383 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.409556  9140 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.EncapEcnMode (69 ms)
Platform 2 test result
$ fboss2_integration_test

[ RUN      ] TunnelIpInIpTest.DecapDscpMode
I1009 07:02:58.939331  8277 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:02:58.939374  8277 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:02:58.939508  8277 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:02:58.942266  8280 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:02:58.950324  8277 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:02:58.973306  8277 Fboss2IntegrationTest.cpp:939] Created VLAN 2000 with interface 2000 for tunnel underlay
I1009 07:02:58.981716  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:58.983730  8294 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:58.985442  8277 TunnelIpInIpTest.cpp:134] [Step 1] Creating decap tunnel integration-test-decap-dscp with dscp-mode pipe...
I1009 07:02:58.985451  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-dscp destination 2001:db8::1 dscp-mode pipe ttl-mode pipe underlay-intf-id 2000
V1009 07:02:58.987027  8295 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:58.996384  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:58.998146  8296 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.050625  8277 TunnelIpInIpTest.cpp:141] [Step 2] Verifying dscp-mode in config, state and SAI...
I1009 07:02:59.054981  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:59.056532  8310 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.057900  8277 TunnelIpInIpTest.cpp:171] New SAI tunnel: TunnelSaiId(180388626433): (Type: 0, UnderlayInterface: 562951078702743619, OverlayInterface: 562951078702743619, DecapTtlMode: 1, DecapDscpMode: 1, DecapEcnMode: 0, EncapSrcIp: 0.0.0.0, EncapTtlMode: 0, EncapDscpMode: 0)
I1009 07:02:59.057912  8277 TunnelIpInIpTest.cpp:179] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:02:59.057917  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dscp
V1009 07:02:59.059743  8311 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.078707  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.080279  8314 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.136658  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1009 07:02:59.138389  8325 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.157607  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.159279  8328 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.207457  8277 Fboss2IntegrationTest.cpp:915] Removed VLAN 2000 and its backing interface
I1009 07:02:59.211472  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:59.213021  8339 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.217803  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dscp
V1009 07:02:59.219263  8340 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.231462  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.233103  8343 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.244816  8277 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapDscpMode (305 ms)
[ RUN      ] TunnelIpInIpTest.EncapDscpMode
I1009 07:02:59.244853  8277 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:02:59.244871  8277 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:02:59.245107  8277 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:02:59.246995  8349 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:02:59.253285  8277 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:02:59.274171  8277 Fboss2IntegrationTest.cpp:939] Created VLAN 2000 with interface 2000 for tunnel underlay
I1009 07:02:59.282045  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:59.283917  8355 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.285457  8277 TunnelIpInIpTest.cpp:134] [Step 1] Creating encap tunnel integration-test-encap-dscp with dscp-mode pipe...
I1009 07:02:59.285467  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-dscp destination 2001:db8::1 dscp-mode pipe source 2001:db8:cafe::6 underlay-intf-id 2000
V1009 07:02:59.287039  8356 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.295546  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.297140  8357 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.345286  8277 TunnelIpInIpTest.cpp:141] [Step 2] Verifying dscp-mode in config, state and SAI...
I1009 07:02:59.349527  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:59.351089  8369 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.352527  8277 TunnelIpInIpTest.cpp:171] New SAI tunnel: TunnelSaiId(180388626433): (Type: 0, UnderlayInterface: 562951078702743619, OverlayInterface: 562951078702743619, DecapTtlMode: 0, DecapDscpMode: 0, DecapEcnMode: 0, EncapSrcIp: 2001:db8:cafe::6, EncapTtlMode: 0, EncapDscpMode: 1)
I1009 07:02:59.352534  8277 TunnelIpInIpTest.cpp:179] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:02:59.352536  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dscp
V1009 07:02:59.353872  8370 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.372805  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.374860  8373 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.428162  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1009 07:02:59.429692  8384 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.449044  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.451031  8387 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.499043  8277 Fboss2IntegrationTest.cpp:915] Removed VLAN 2000 and its backing interface
I1009 07:02:59.502839  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:59.504445  8398 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.509295  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dscp
V1009 07:02:59.510726  8399 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.522116  8277 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.523847  8402 CmdHandler.h:222] host: localhost ip: ::1
[       OK ] TunnelIpInIpTest.EncapDscpMode (290 ms)

$ fboss2_integration_test

[ RUN      ] TunnelIpInIpTest.DecapEcnMode
I1009 07:36:07.623725  9187 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:36:07.623743  9187 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:36:07.623972  9187 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:36:07.625700  9259 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:36:07.631005  9187 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:36:07.651785  9187 Fboss2IntegrationTest.cpp:939] Created VLAN 2000 with interface 2000 for tunnel underlay
I1009 07:36:07.659245  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:07.661161  9265 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.662487  9187 TunnelIpInIpTest.cpp:148] [Step 1] Creating decap tunnel integration-test-decap-ecn with ecn-mode pipe...
I1009 07:36:07.662493  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-ecn destination 2001:db8::1 ecn-mode pipe ttl-mode pipe underlay-intf-id 2000
V1009 07:36:07.664327  9266 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.673610  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:07.675407  9267 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.729296  9187 TunnelIpInIpTest.cpp:155] [Step 2] Verifying ecn-mode in config, state and SAI...
I1009 07:36:07.732524  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:07.733938  9279 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.735086  9187 TunnelIpInIpTest.cpp:186] New SAI tunnel: TunnelSaiId(180388626433): (Type: 0, UnderlayInterface: 562951078702743619, OverlayInterface: 562951078702743619, DecapTtlMode: 1, DecapDscpMode: 0, DecapEcnMode: 1, EncapSrcIp: 0.0.0.0, EncapTtlMode: 0, EncapDscpMode: 0)
I1009 07:36:07.735092  9187 TunnelIpInIpTest.cpp:198] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:36:07.735095  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-ecn
V1009 07:36:07.736521  9280 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.755422  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:07.757029  9283 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.811151  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1009 07:36:07.812695  9294 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.830902  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:07.832887  9297 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.883144  9187 Fboss2IntegrationTest.cpp:915] Removed VLAN 2000 and its backing interface
I1009 07:36:07.886419  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:07.887933  9308 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.892362  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-ecn
V1009 07:36:07.893789  9309 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.904830  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:07.906546  9312 CmdHandler.h:222] host: localhost ip: ::1
[       OK ] TunnelIpInIpTest.DecapEcnMode (294 ms)
[ RUN      ] TunnelIpInIpTest.EncapEcnMode
I1009 07:36:08.203171  9187 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:36:08.203188  9187 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:36:08.203403  9187 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:36:08.205006  9377 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:36:08.210074  9187 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:36:08.231570  9187 Fboss2IntegrationTest.cpp:939] Created VLAN 2000 with interface 2000 for tunnel underlay
I1009 07:36:08.239056  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:08.240602  9383 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.242149  9187 TunnelIpInIpTest.cpp:148] [Step 1] Creating encap tunnel integration-test-encap-ecn with ecn-mode pipe...
I1009 07:36:08.242159  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-ecn destination 2001:db8::1 ecn-mode pipe source 2001:db8:cafe::6 underlay-intf-id 2000
V1009 07:36:08.243680  9384 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.253137  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.254589  9385 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.307170  9187 TunnelIpInIpTest.cpp:155] [Step 2] Verifying ecn-mode in config, state and SAI...
I1009 07:36:08.310536  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:08.312069  9397 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.313399  9187 TunnelIpInIpTest.cpp:186] New SAI tunnel: TunnelSaiId(180388626433): (Type: 0, UnderlayInterface: 562951078702743619, OverlayInterface: 562951078702743619, DecapTtlMode: 0, DecapDscpMode: 0, DecapEcnMode: 0, EncapSrcIp: 2001:db8:cafe::6, EncapTtlMode: 0, EncapDscpMode: 0)
I1009 07:36:08.313406  9187 TunnelIpInIpTest.cpp:198] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:36:08.313408  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-ecn
V1009 07:36:08.315355  9398 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.335371  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.336832  9401 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.390668  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1009 07:36:08.392190  9412 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.411480  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.413633  9415 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.464184  9187 Fboss2IntegrationTest.cpp:915] Removed VLAN 2000 and its backing interface
I1009 07:36:08.467372  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:08.468895  9429 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.472788  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-ecn
V1009 07:36:08.474215  9430 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.485251  9187 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.486897  9433 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.497585  9187 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.EncapEcnMode (294 ms)
Platform 3 test result
$ fboss2_integration_test

[ RUN      ] TunnelIpInIpTest.DecapDscpMode
I1009 07:02:59.390764  7220 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:02:59.390856  7220 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:02:59.390906  7220 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:02:59.392567  7223 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:02:59.395677  7220 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:02:59.400917  7220 Fboss2IntegrationTest.cpp:939] Created VLAN 2000 with interface 2000 for tunnel underlay
I1009 07:02:59.401707  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:59.402720  7237 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.403757  7220 TunnelIpInIpTest.cpp:134] [Step 1] Creating decap tunnel integration-test-decap-dscp with dscp-mode pipe...
I1009 07:02:59.403762  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-dscp destination 2001:db8::1 dscp-mode pipe ttl-mode pipe underlay-intf-id 2000
V1009 07:02:59.404562  7238 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.405586  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.406372  7239 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.421001  7220 TunnelIpInIpTest.cpp:141] [Step 2] Verifying dscp-mode in config, state and SAI...
I1009 07:02:59.421812  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:59.422688  7253 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.423393  7220 TunnelIpInIpTest.cpp:171] New SAI tunnel: TunnelSaiId(180388626433): (Type: 0, UnderlayInterface: 562951078702743587, OverlayInterface: 562951078702743587, DecapTtlMode: 1, DecapDscpMode: 1, DecapEcnMode: 0, EncapSrcIp: 0.0.0.0, EncapTtlMode: 0, EncapDscpMode: 0)
I1009 07:02:59.423398  7220 TunnelIpInIpTest.cpp:179] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:02:59.423400  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dscp
V1009 07:02:59.424203  7254 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.427613  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.428427  7257 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.441207  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1009 07:02:59.442066  7268 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.444914  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.445741  7271 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.456979  7220 Fboss2IntegrationTest.cpp:915] Removed VLAN 2000 and its backing interface
I1009 07:02:59.457528  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:59.458367  7282 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.459417  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dscp
V1009 07:02:59.460244  7283 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.462397  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.463226  7286 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.467003  7220 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapDscpMode (76 ms)
[ RUN      ] TunnelIpInIpTest.EncapDscpMode
I1009 07:02:59.467028  7220 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:02:59.467034  7220 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:02:59.467059  7220 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:02:59.467930  7292 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:02:59.469872  7220 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:02:59.474303  7220 Fboss2IntegrationTest.cpp:939] Created VLAN 2000 with interface 2000 for tunnel underlay
I1009 07:02:59.475118  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:59.476134  7298 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.476773  7220 TunnelIpInIpTest.cpp:134] [Step 1] Creating encap tunnel integration-test-encap-dscp with dscp-mode pipe...
I1009 07:02:59.476777  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-dscp destination 2001:db8::1 dscp-mode pipe source 2001:db8:cafe::6 underlay-intf-id 2000
V1009 07:02:59.477581  7299 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.478532  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.479318  7300 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.491301  7220 TunnelIpInIpTest.cpp:141] [Step 2] Verifying dscp-mode in config, state and SAI...
I1009 07:02:59.491978  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:59.492849  7312 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.493542  7220 TunnelIpInIpTest.cpp:171] New SAI tunnel: TunnelSaiId(180388626433): (Type: 0, UnderlayInterface: 562951078702743587, OverlayInterface: 562951078702743587, DecapTtlMode: 0, DecapDscpMode: 0, DecapEcnMode: 0, EncapSrcIp: 2001:db8:cafe::6, EncapTtlMode: 0, EncapDscpMode: 1)
I1009 07:02:59.493547  7220 TunnelIpInIpTest.cpp:179] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:02:59.493548  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dscp
V1009 07:02:59.494323  7313 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.497220  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.498046  7316 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.509762  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1009 07:02:59.510635  7327 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.513465  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.514285  7330 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.525943  7220 Fboss2IntegrationTest.cpp:915] Removed VLAN 2000 and its backing interface
I1009 07:02:59.526541  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:02:59.527399  7341 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.528500  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-dscp
V1009 07:02:59.529334  7342 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.531485  7220 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:02:59.532277  7345 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:02:59.536047  7220 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.EncapDscpMode (69 ms)

$ fboss2_integration_test

[ RUN      ] TunnelIpInIpTest.DecapEcnMode
I1009 07:36:07.297008  7850 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:36:07.297014  7850 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:36:07.297045  7850 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:36:07.297940  7922 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:36:07.299649  7850 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:36:07.304118  7850 Fboss2IntegrationTest.cpp:939] Created VLAN 2000 with interface 2000 for tunnel underlay
I1009 07:36:07.304909  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:07.305959  7928 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.306567  7850 TunnelIpInIpTest.cpp:148] [Step 1] Creating decap tunnel integration-test-decap-ecn with ecn-mode pipe...
I1009 07:36:07.306571  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-ecn destination 2001:db8::1 ecn-mode pipe ttl-mode pipe underlay-intf-id 2000
V1009 07:36:07.307419  7929 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.308328  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:07.309150  7930 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.321463  7850 TunnelIpInIpTest.cpp:155] [Step 2] Verifying ecn-mode in config, state and SAI...
I1009 07:36:07.322180  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:07.323070  7942 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.323738  7850 TunnelIpInIpTest.cpp:186] New SAI tunnel: TunnelSaiId(180388626433): (Type: 0, UnderlayInterface: 562951078702743587, OverlayInterface: 562951078702743587, DecapTtlMode: 1, DecapDscpMode: 0, DecapEcnMode: 1, EncapSrcIp: 0.0.0.0, EncapTtlMode: 0, EncapDscpMode: 0)
I1009 07:36:07.323742  7850 TunnelIpInIpTest.cpp:198] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:36:07.323744  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-ecn
V1009 07:36:07.324539  7943 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.327540  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:07.328378  7946 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.340214  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1009 07:36:07.341087  7957 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.343922  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:07.344786  7960 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.355892  7850 Fboss2IntegrationTest.cpp:915] Removed VLAN 2000 and its backing interface
I1009 07:36:07.356473  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:07.357336  7971 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.358434  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-ecn
V1009 07:36:07.359301  7972 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.361494  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:07.362312  7975 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.366129  7850 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapEcnMode (69 ms)
[ RUN      ] TunnelIpInIpTest.EncapEcnMode
I1009 07:36:07.434086  7850 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:36:07.434093  7850 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:36:07.434123  7850 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:36:07.435001  8040 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:36:07.436775  7850 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:36:07.441330  7850 Fboss2IntegrationTest.cpp:939] Created VLAN 2000 with interface 2000 for tunnel underlay
I1009 07:36:07.442125  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:07.443141  8046 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.443815  7850 TunnelIpInIpTest.cpp:148] [Step 1] Creating encap tunnel integration-test-encap-ecn with ecn-mode pipe...
I1009 07:36:07.443819  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-ecn destination 2001:db8::1 ecn-mode pipe source 2001:db8:cafe::6 underlay-intf-id 2000
V1009 07:36:07.444624  8047 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.445575  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:07.446383  8048 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.459141  7850 TunnelIpInIpTest.cpp:155] [Step 2] Verifying ecn-mode in config, state and SAI...
I1009 07:36:07.459816  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:07.460673  8060 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.461284  7850 TunnelIpInIpTest.cpp:186] New SAI tunnel: TunnelSaiId(180388626433): (Type: 0, UnderlayInterface: 562951078702743587, OverlayInterface: 562951078702743587, DecapTtlMode: 0, DecapDscpMode: 0, DecapEcnMode: 0, EncapSrcIp: 2001:db8:cafe::6, EncapTtlMode: 0, EncapDscpMode: 0)
I1009 07:36:07.461288  7850 TunnelIpInIpTest.cpp:198] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:36:07.461289  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-ecn
V1009 07:36:07.462082  8061 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.464983  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:07.465826  8064 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.477246  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1009 07:36:07.478148  8075 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.481127  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:07.481973  8078 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.493511  7850 Fboss2IntegrationTest.cpp:915] Removed VLAN 2000 and its backing interface
I1009 07:36:07.494061  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:07.494936  8089 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.495930  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-ecn
V1009 07:36:07.496764  8090 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:07.498901  7850 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:07.499756  8093 CmdHandler.h:222] host: localhost ip: ::1
[       OK ] TunnelIpInIpTest.EncapEcnMode (69 ms)
Platform 4 test result
$ fboss2_integration_test --gtest_filter='TunnelIpInIpTest.DecapDscpMode'
Not run on this platform: TunnelIpInIpTest.EncapDscpMode

[ RUN      ] TunnelIpInIpTest.DecapDscpMode
I1012 07:30:49.419968 44385 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1012 07:30:49.420083 44385 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1012 07:30:49.420135 44385 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1012 07:30:49.421699 44388 CmdHandler.h:222] host: localhost ip: ::1
V1012 07:30:49.424837 44385 Fboss2IntegrationTest.cpp:185] Agent is ready
I1012 07:30:49.430099 44385 Fboss2IntegrationTest.cpp:939] Created VLAN 2000 with interface 2000 for tunnel underlay
I1012 07:30:49.431177 44385 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1012 07:30:49.432481 44404 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:30:49.434157 44385 TunnelIpInIpTest.cpp:134] [Step 1] Creating decap tunnel integration-test-decap-dscp with dscp-mode pipe...
I1012 07:30:49.434162 44385 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-dscp destination 2001:db8::1 dscp-mode pipe ttl-mode pipe underlay-intf-id 2000
V1012 07:30:49.434984 44408 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:30:49.436035 44385 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:30:49.436812 44409 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:30:49.454780 44385 TunnelIpInIpTest.cpp:141] [Step 2] Verifying dscp-mode in config, state and SAI...
I1012 07:30:49.455821 44385 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1012 07:30:49.456836 44427 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:30:49.458012 44385 TunnelIpInIpTest.cpp:171] New SAI tunnel: TunnelSaiId(1513209474796486656): (Type: 0, UnderlayInterface: 216172782113784868, OverlayInterface: 216172782113784868, DecapTtlMode: 1, DecapDscpMode: 1, DecapEcnMode: 0, EncapSrcIp: 0.0.0.0, EncapTtlMode: 0, EncapDscpMode: 0)
I1012 07:30:49.458019 44385 TunnelIpInIpTest.cpp:179] [Step 3] Deleting tunnel and underlay VLAN...
I1012 07:30:49.458021 44385 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dscp
V1012 07:30:49.458997 44431 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:30:49.462095 44385 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:30:49.462950 44434 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:30:49.476056 44385 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1012 07:30:49.476990 44448 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:30:49.480163 44385 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:30:49.481004 44451 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:30:49.492623 44385 Fboss2IntegrationTest.cpp:915] Removed VLAN 2000 and its backing interface
I1012 07:30:49.493319 44385 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1012 07:30:49.494222 44464 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:30:49.495825 44385 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-dscp
V1012 07:30:49.496708 44469 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:30:49.499022 44385 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1012 07:30:49.499854 44472 CmdHandler.h:222] host: localhost ip: ::1
I1012 07:30:49.504222 44385 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapDscpMode (84 ms)

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

$ fboss2_integration_test

[ RUN      ] TunnelIpInIpTest.DecapEcnMode
I1009 07:36:08.710433 28966 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:36:08.710440 28966 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:36:08.710465 28966 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:36:08.711306 29038 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:36:08.713004 28966 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:36:08.717562 28966 Fboss2IntegrationTest.cpp:939] Created VLAN 2000 with interface 2000 for tunnel underlay
I1009 07:36:08.718417 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:08.719427 29044 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.720030 28966 TunnelIpInIpTest.cpp:148] [Step 1] Creating decap tunnel integration-test-decap-ecn with ecn-mode pipe...
I1009 07:36:08.720034 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip decap integration-test-decap-ecn destination 2001:db8::1 ecn-mode pipe ttl-mode pipe underlay-intf-id 2000
V1009 07:36:08.720823 29045 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.721827 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.722599 29046 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.739753 28966 TunnelIpInIpTest.cpp:155] [Step 2] Verifying ecn-mode in config, state and SAI...
I1009 07:36:08.740467 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:08.741339 29058 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.741986 28966 TunnelIpInIpTest.cpp:186] New SAI tunnel: TunnelSaiId(1513209474796486656): (Type: 0, UnderlayInterface: 216172782113784868, OverlayInterface: 216172782113784868, DecapTtlMode: 1, DecapDscpMode: 0, DecapEcnMode: 1, EncapSrcIp: 0.0.0.0, EncapTtlMode: 0, EncapDscpMode: 0)
I1009 07:36:08.741990 28966 TunnelIpInIpTest.cpp:198] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:36:08.741992 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-ecn
V1009 07:36:08.742786 29059 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.745671 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.746448 29062 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.758087 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1009 07:36:08.758949 29073 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.761945 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.762772 29076 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.773897 28966 Fboss2IntegrationTest.cpp:915] Removed VLAN 2000 and its backing interface
I1009 07:36:08.774445 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:36:08.775296 29087 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.776387 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip decap integration-test-decap-ecn
V1009 07:36:08.777195 29088 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.779408 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:36:08.780223 29091 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:36:08.783868 28966 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.DecapEcnMode (73 ms)
[ RUN      ] TunnelIpInIpTest.EncapEcnMode
I1009 07:38:01.544042 28966 Fboss2IntegrationTest.cpp:237] Fboss2IntegrationTest::SetUp - starting CLI test
I1009 07:38:01.544049 28966 Fboss2IntegrationTest.cpp:151] Discarding session config: /root/.fboss2/agent.conf
I1009 07:38:01.544075 28966 Fboss2IntegrationTest.cpp:158] Discarding session metadata: /root/.fboss2/cli_metadata.json
V1009 07:38:01.544945 29804 CmdHandler.h:222] host: localhost ip: ::1
V1009 07:38:01.546684 28966 Fboss2IntegrationTest.cpp:185] Agent is ready
I1009 07:38:01.551372 28966 Fboss2IntegrationTest.cpp:939] Created VLAN 2000 with interface 2000 for tunnel underlay
I1009 07:38:01.552147 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:38:01.553010 29810 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:38:01.554425 28966 TunnelIpInIpTest.cpp:148] [Step 1] Creating encap tunnel integration-test-encap-ecn with ecn-mode pipe...
I1009 07:38:01.554429 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: config tunnel ip-in-ip encap integration-test-encap-ecn destination 2001:db8::1 ecn-mode pipe source 2001:db8:cafe::6 underlay-intf-id 2000
V1009 07:38:01.555225 29811 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:38:01.556184 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:38:01.556960 29812 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:38:01.569405 28966 TunnelIpInIpTest.cpp:155] [Step 2] Verifying ecn-mode in config, state and SAI...
I1009 07:38:01.570103 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:38:01.570967 29824 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:38:01.571666 28966 TunnelIpInIpTest.cpp:186] New SAI tunnel: TunnelSaiId(1513209474796486656): (Type: 0, UnderlayInterface: 216172782113784868, OverlayInterface: 216172782113784868, DecapTtlMode: 0, DecapDscpMode: 0, DecapEcnMode: 0, EncapSrcIp: 2001:db8:cafe::6, EncapTtlMode: 0, EncapDscpMode: 0)
I1009 07:38:01.571670 28966 TunnelIpInIpTest.cpp:198] [Step 3] Deleting tunnel and underlay VLAN...
I1009 07:38:01.571672 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-ecn
V1009 07:38:01.572468 29825 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:38:01.575544 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:38:01.576362 29828 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:38:01.587753 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: delete vlan 2000
V1009 07:38:01.588621 29839 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:38:01.591437 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:38:01.592352 29842 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:38:01.604366 28966 Fboss2IntegrationTest.cpp:915] Removed VLAN 2000 and its backing interface
I1009 07:38:01.604901 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: show hw-object IPTUNNEL
V1009 07:38:01.605750 29853 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:38:01.606860 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: delete tunnel ip-in-ip encap integration-test-encap-ecn
V1009 07:38:01.607683 29854 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:38:01.609788 28966 Fboss2IntegrationTest.cpp:281] Running CLI command: config session commit
V1009 07:38:01.610607 29857 CmdHandler.h:222] host: localhost ip: ::1
I1009 07:38:01.614147 28966 Fboss2IntegrationTest.cpp:246] Fboss2IntegrationTest::TearDown - cleaning up CLI test
[       OK ] TunnelIpInIpTest.EncapEcnMode (70 ms)

@meta-cla meta-cla Bot added the CLA Signed label Oct 13, 2026
@abhinav-nexthop
abhinav-nexthop marked this pull request as ready for review October 14, 2026 08:35
@abhinav-nexthop
abhinav-nexthop requested a review from a team as a code owner October 14, 2026 08:35
@github-actions github-actions Bot added nexthop project:fboss2-dev FBOSS project: fboss2-dev labels Oct 14, 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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant