Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
- What I did
Partial code change for mgmt vrf related buster change.
This pull request removes cgcreate, cgset, cgdelete for l3mdev:mgmt in interfaces.j2, which are not applicable for linux 4.19.
- How I did it
In interfaces.j2, remove cgcreate, cgset, cgdelete for l3mdev:mgmt
- How to verify it
Test from click
check ip vrf show from kernel
ping remote ip, traceroute, scp with "ip vrf exec mgmt"
check ip vrf show from kernel
ping remote ip, traceroute, scp
for mgmt vrf add
//////////////////////
root@sonic:~# ip vrf show
Name Table
No VRF has been configured
root@sonic:
##root@sonic:
root@sonic:
## config vrf add mgmtroot@sonic:
root@sonic:
##root@sonic:
root@sonic:~# ip vrf show
Name Table
mgmt 5000
root@sonic:
##root@sonic:
root@sonic:
# ip vrf exec mgmt ping 10.14.8.140#PING 10.14.8.140 (10.14.8.140) 56(84) bytes of data.
64 bytes from 10.14.8.140: icmp_seq=1 ttl=61 time=2.07 ms
64 bytes from 10.14.8.140: icmp_seq=2 ttl=61 time=1.69 ms
^C
--- 10.14.8.140 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 2ms
rtt min/avg/max/mdev = 1.685/1.875/2.065/0.190 ms
root@sonic:
for mgmt vrf delete
//////////////////////
root@sonic:~# ip vrf show
Name Table
mgmt 5000
root@sonic:
##root@sonic:
root@sonic:
## config vrf del mgmtroot@sonic:
root@sonic:
##root@sonic:
root@sonic:
## ip vrf showroot@sonic:
Name Table
No VRF has been configured
root@sonic:
##root@sonic:
root@sonic:
## ping 10.14.8.140root@sonic:
PING 10.14.8.140 (10.14.8.140) 56(84) bytes of data.
64 bytes from 10.14.8.140: icmp_seq=1 ttl=61 time=1.95 ms
64 bytes from 10.14.8.140: icmp_seq=2 ttl=61 time=1.66 ms
64 bytes from 10.14.8.140: icmp_seq=3 ttl=61 time=1.66 ms
64 bytes from 10.14.8.140: icmp_seq=4 ttl=61 time=1.69 ms
^C
--- 10.14.8.140 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 7ms
rtt min/avg/max/mdev = 1.661/1.742/1.954/0.122 ms
root@sonic:~#
- Description for the changelog
modify interfaces.j2 for mgmt vrf handling in Buster