Skip to content

Commit

Permalink
Change vlan name format from vlan<vlanid> to <device>.<vlanid>
Browse files Browse the repository at this point in the history
Having vlan1234 prevents us from having eth0.1234 and eth1.1234 (same vlan on different interfaces).

Change-Id: I3f116581a7e905f936ab21356ebca973e8d74e23
Closes-Bug:#1562456
  • Loading branch information
Senthilnathan Murugappan committed Mar 27, 2016
1 parent 1e9a3ff commit 6cd2d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrail_provisioning/common/interface_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def create_bond_members(self):

def create_vlan_interface(self):
'''Create interface config for vlan sub interface'''
interface = 'vlan'+self.vlan
interface = "%s.%s"%(self.device, self.vlan)
cfg = ['auto %s' %interface,
'iface %s inet static' %interface,
'address %s' %self.ipaddr,
Expand Down

0 comments on commit 6cd2d8b

Please sign in to comment.