Page MenuHomeDevCentral

Reduce the length of GRE interface name
ClosedPublic

Authored by dereckson on Apr 12 2023, 23:33.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 05:44
Unknown Object (File)
Tue, Dec 17, 05:21
Unknown Object (File)
Mon, Dec 16, 23:15
Unknown Object (File)
Mon, Dec 16, 01:49
Unknown Object (File)
Thu, Dec 12, 15:07
Unknown Object (File)
Sun, Dec 8, 08:16
Unknown Object (File)
Sat, Dec 7, 11:31
Unknown Object (File)
Sat, Dec 7, 11:20
Subscribers
None

Details

Summary

The define IFNAMSIZ in Linux kernel defines the maximum length of an interface
name. By default, 16 characters, including the final '\0'.

As such, names like gre-drake_via_router-001 are too long.

gre-drake seems to be descriptive enough, as a node has only one GRE tunnel
if it's not our router.

Reference: include/uapi/linux/if.h

Ref T1832

Test Plan

Deploy on cloudhugger, ifconfig gre-drake

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Errors
SeverityLocationCodeMessage
Error_modules/node.py:417E501flake8 E501
Unit
No Test Coverage
Branch
fix-cloudhugger
Build Status
Buildable 4752
Build 5033: arc lint + arc unit

Event Timeline

dereckson created this revision.

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/if.h

if.h
#if __UAPI_DEF_IF_IFNAMSIZ
#define	IFNAMSIZ	16
#endif /* __UAPI_DEF_IF_IFNAMSIZ */
#define	IFALIASZ	256
#define	ALTIFNAMSIZ	128
#include <linux/hdlc/ioctl.h>
This revision is now accepted and ready to land.Apr 12 2023, 23:34
This revision was landed with ongoing or failed builds.Apr 12 2023, 23:35
This revision was automatically updated to reflect the committed changes.