vxlan remote ip

36 views
Skip to first unread message

Ravi Bhagavatula

unread,
Nov 19, 2017, 12:01:20 PM11/19/17
to pyroute2-dev
Hi,

I recently started playing around with pyroute2. I'm trying to create a vxlan interface using IPDB, and dont seem to find any VXLAN IFLA attribute that maps to a remote ip.

For example, the below

ip link add vxlan0 type vxlan id 42 group 239.1.1.1 dev tun8

corresponds to

ip.create(ifname=name, kind='vxlan', vxlan_id=42, vxlan_group='239.1.1.1', vxlan_link=ip.interfaces['tun8'])

For a static VXLAN tunnel,

ip link add vxlan0 type vxlan id 42 local 200.1.1.2 remote 200.1.1.1 dev tun8

where do I specify the 'remote-ip'?

ip.create(ifname=name, kind='vxlan', vxlan_id=42, vxlan_local='200.1.1.2', <missing-vxlan-remote>, vxlan_link=ip.interfaces['tun8'])

Looked up the vxlan class definition @ netlink/rtnl/ifinfmsg/plugins/vxlan.py, and the nla_map doesn't seem to have anything which fits this need. Is this supported by pyroute2? Or, am I missing something?

Thanks,
Ravi Bhagavatula

Reply all
Reply to author
Forward
0 new messages