Hmmm somehow I change somecode in here: ~/kuryr-k8s-controller/kuryr-kubernetes/kuryr_kubernetes/os_vif_util.py
``` try: fixed_ips = neutron_port.get('fixed_ips', []) port_id = neutron_port.get('id') except TypeError: fixed_ips = neutron_port.fixed_ips port_id = neutron_port.get.id
for neutron_fixed_ip in fixed_ips: subnet_id = neutron_fixed_ip['subnet_id'] ip_address = neutron_fixed_ip['ip_address']
```
after some debug
``` try: fixed_ips = neutron_port.fixed_ips LOG.info('========================neutron_port.get %s', neutron_port.fixed_ips) port_id = neutron_port.get('id') except TypeError: fixed_ips = neutron_port.fixed_ips port_id = neutron_port.get.id
for neutron_fixed_ip in fixed_ips: LOG.info('debug============i %s', fixed_ips) subnet_id = neutron_fixed_ip['subnet_id'] ip_address = neutron_fixed_ip['ip_address'] ```
I change the
``` try: fixed_ips = neutron_port.get('fixed_ips', [])```
into
``` try: fixed_ips = neutron_port.fixed_ips
and it work normally although it already have try and expect
Hmmm somehow I change somecode in here: ~/kuryr- k8s-controller/ kuryr-kubernete s/kuryr_ kubernetes/ os_vif_ util.py
``` port.get( 'fixed_ ips', []) port.get( 'id') port.fixed_ ips
try:
fixed_ips = neutron_
port_id = neutron_
except TypeError:
fixed_ips = neutron_
port_id = neutron_port.get.id
for neutron_fixed_ip in fixed_ips: fixed_ip[ 'subnet_ id'] fixed_ip[ 'ip_address' ]
subnet_id = neutron_
ip_address = neutron_
```
after some debug
``` port.fixed_ ips
LOG.info( '====== ======= ======= ====neutron_ port.get %s', neutron_ port.fixed_ ips) port.get( 'id') port.fixed_ ips
try:
fixed_ips = neutron_
port_id = neutron_
except TypeError:
fixed_ips = neutron_
port_id = neutron_port.get.id
for neutron_fixed_ip in fixed_ips:
LOG.info( 'debug= ======= ====i %s', fixed_ips) fixed_ip[ 'subnet_ id'] fixed_ip[ 'ip_address' ]
subnet_id = neutron_
ip_address = neutron_
```
I change the
``` port.get( 'fixed_ ips', [])```
try:
fixed_ips = neutron_
into
``` port.fixed_ ips
try:
fixed_ips = neutron_
```
and it work normally although it already have try and expect