Skip to content

Conversation

@rminnikanti
Copy link

Older versions of iproute2 package created /etc/iproute2/rt_tables.d directory because of which ifupdown2_vrf_map.conf generation succeeded.

New version of iproute2 (6.15.0-1) in debian trixie doesn't create /etc/iproute2, because of this vrf map conf generation failing, inturn resulting in mgmt VRF creation failure

Fix is to ensure /etc/iproute2/rt_tables.d directory present before generating ifupdown2_vrf_map.conf

Failure error log:
networking[335486]: error: [Errno 2] No such file or directory: '/etc/iproute2/rt_tables.d/ifupdown2_vrf_map.conf'

How to verify it

Tested in Sonic NOS by creating mgmt VRF and observe the failure without this fix.

sudo config vrf add mgmt

show mgmt-vrf

ManagementVRF : Enabled

Management VRF interfaces in Linux:
Device "mgmt" does not exist. 

Older versions of iproute2 package created /etc/iproute2/rt_tables.d
directory because of which ifupdown2_vrf_map.conf generation succeeded.

New version of iproute2 (6.15.0-1) in debian trixie doesn't create
/etc/iproute2, because of this vrf map conf generation failing, inturn
resulting in mgmt VRF creation failure

Fix is to ensure /etc/iproute2/rt_tables.d directory present before
generating ifupdown2_vrf_map.conf

Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant