Fix some typos

This commit is contained in:
Joshua Boniface 2018-09-23 15:37:13 -04:00
parent 3c2baf3872
commit 091fc94c05
2 changed files with 11 additions and 7 deletions

View File

@ -7,7 +7,7 @@ After = network-online.target frr.service
Type = simple Type = simple
WorkingDirectory = /usr/share/pvc WorkingDirectory = /usr/share/pvc
Environment = PYTHONUNBUFFERED=true Environment = PYTHONUNBUFFERED=true
Environment = PVCND_CONFIG_FILE=/etc/pvc/pvcrd.conf Environment = PVCRD_CONFIG_FILE=/etc/pvc/pvcrd.conf
ExecStart = /usr/share/pvc/pvcrd.py ExecStart = /usr/share/pvc/pvcrd.py
Restart = on-failure Restart = on-failure

View File

@ -89,17 +89,19 @@ class VXNetworkInstance():
self.corosync_provisioned = True self.corosync_provisioned = True
ansiiprint.echo('Creating Corosync resource for gateway {} on interface {}'.format(self.ip_gateway, self.vni), '', 'o') ansiiprint.echo('Creating Corosync resource for gateway {} on interface {}'.format(self.ip_gateway, self.vni), '', 'o')
os.system( os.system(
'echo \" """
echo "
configure configure
primitive vnivip_{0} ocf:heartbeat:IPaddr2 params ip={1} cidr_netmask={2} nic={3} op monitor interval=1s primitive vnivip_{0} ocf:heartbeat:IPaddr2 params ip={1} cidr_netmask={2} nic={3} op monitor interval=1s
commit commit
up up
resource resource
start vnivip_{0} start vnivip_{0}
\" | crm -f -'.format( " | crm -f -
""".format(
self.description, self.description,
self.ip_gateway, self.ip_gateway,
self.ip_cidrnetmask self.ip_cidrnetmask,
self.bridge_nic self.bridge_nic
) )
) )
@ -107,14 +109,16 @@ class VXNetworkInstance():
def removeCorosyncResource(self): def removeCorosyncResource(self):
ansiiprint.echo('Removing Corosync resource for gateway {} on interface {}'.format(self.ip_gateway, self.vni), '', 'o') ansiiprint.echo('Removing Corosync resource for gateway {} on interface {}'.format(self.ip_gateway, self.vni), '', 'o')
os.system( os.system(
'echo \" """
echo "
resource resource
stop vnivip_{0} stop vnivip_{0}
up up
configure configure
delete vnivip_{0} delete vnivip_{0}
commit commit
\" | crm -f -'.format( " | crm -f -
""".format(
self.description self.description
) )
) )
@ -136,7 +140,7 @@ class VXNetworkInstance():
) )
os.system( os.system(
'brctl addif {0} {1}'.format( 'brctl addif {0} {1}'.format(
self.bridge_nic self.bridge_nic,
self.vxlan_nic self.vxlan_nic
) )
) )