Replies: 2 comments 1 reply
-
I did it like that: |
Beta Was this translation helpful? Give feedback.
0 replies
-
I believe that the bridge options should be prefixed with
Regarding the address there are flags defined in pyroute2/pyroute2/netlink/rtnl/ifaddrmsg.py Lines 15 to 27 in 696d2bf Also there are static functions to convert flags, like that: from pyroute2.netlink.rtnl.ifaddrmsg import ifaddrmsg
ipr.addr(
'add',
index=ipr.link_lookup(ifname='br8888'), # index can be provided as an iterable, the [0] item will be used
address="169.254.169.254",
prefixlen=24,
scope=253,
flags=ifaddrmsg.names2flags(["IFA_F_NOPREFIXROUTE"])
) May be syntax like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
we use next one construction:
How we can add flag
noprefixroute
when useipr.addr
?Used the
ip
utility we do it like:ip a add 169.254.169.254/24 dev br8888 noprefixroute
Beta Was this translation helpful? Give feedback.
All reactions