Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
# this package is obsolete.
OLD_PACKAGES="rw.core.rwvx-rwha-1.0"
for package in $PACKAGES $OLD_PACKAGES; do
- apt remove -y $package || true
+ sudo apt remove -y $package || true
done
packages=""
#!/usr/bin/python
-#
+#
# Copyright 2017 RIFT.IO Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
else:
raise NotImplementedError("Port Type: %s not supported" %(cp.type_yang))
- if cp.static_ip_address:
- args["fixed_ips"] = [{"ip_address" : cp.static_ip_address}]
+ try:
+ if cp.static_ip_address:
+ args["fixed_ips"] = [{"ip_address" : cp.static_ip_address}]
+ except Exception as e:
+ pass
if 'port_security_enabled' in cp:
args['port_security_enabled'] = cp.port_security_enabled