Lines Matching full:iface
39 def add_vlan(session, v_id, iface="eth0"):
40 session.cmd("vconfig add %s %s" % (iface, v_id))
42 def set_ip_vlan(session, v_id, ip, iface="eth0"):
43 iface = "%s.%s" % (iface, v_id)
44 session.cmd("ifconfig %s %s" % (iface, ip))
46 def set_arp_ignore(session, iface="eth0"):
50 def rem_vlan(session, v_id, iface="eth0"):
52 iface = "%s.%s" % (iface, v_id)
53 return session.cmd_status(rem_vlan_cmd % (iface, iface))