(self)
| 112 | return None |
| 113 | |
| 114 | def process(self): |
| 115 | for dev in self.dbag: |
| 116 | if dev == "id": |
| 117 | continue |
| 118 | ip = CsIP(dev, self.config) |
| 119 | |
| 120 | for address in self.dbag[dev]: |
| 121 | ip.setAddress(address) |
| 122 | logging.info("Address found in DataBag ==> %s" % address) |
| 123 | |
| 124 | if not address['add'] and not ip.configured(): |
| 125 | logging.info("Skipping %s as the add flag is set to %s " % (address['public_ip'], address['add'])) |
| 126 | continue |
| 127 | |
| 128 | if ip.configured(): |
| 129 | logging.info( |
| 130 | "Address %s on device %s already configured", ip.ip(), dev) |
| 131 | |
| 132 | ip.post_configure(address) |
| 133 | else: |
| 134 | logging.info( |
| 135 | "Address %s on device %s not configured", ip.ip(), dev) |
| 136 | |
| 137 | if CsDevice(dev, self.config).waitfordevice(): |
| 138 | ip.configure(address) |
| 139 | |
| 140 | |
| 141 | class CsInterface: |
nothing calls this directly
no test coverage detected