Looking at both resource._attrs and dir(resource) for the network resource, the following inconsistencies were noted:
1) create_network(): resource._attrs only contains the values provided via attrs parameter (i.e. name) and dir(resource) does not contain attributes for port_security_enabled, provider:network_type, provider:physical_network, provider:segmentation_id and router:external.
2) networks(): resource._attrs and dir(resource) are complete
3) get_network(): dir(resource) does not contain attributes for port_security_enabled, provider:network_type, provider:physical_network, provider:segmentation_id and router:external.
4) find_network(): Same as networks().
5) update_network(id): Same as create_network().
6) update_network(resource): Same as get_network().
Some of the resource methods appear to be missing code to update attrs based on the response data.
While investigating https:/ /bugs.launchpad .net/python- openstacksdk/ +bug/1461200, I found inconsistencies in the resource objects returned by the proxy interface methods. Take the following proxy interface example using network:
for network in self.conn. network. networks( ):
print( network)
network = self.conn. network. get_network( example_ network. id)
print( network)
network = self.conn. network. get_network( example_ network)
print( network)
network = self.conn. network. find_network( example_ network. id)
print( network)
network = self.conn. network. update_ network( example_ network. id,
admin_ state_up= False)
print( network)
network = self.conn.
Looking at both resource._attrs and dir(resource) for the network resource, the following inconsistencies were noted: enabled, provider: network_ type, provider: physical_ network, provider: segmentation_ id and router:external. enabled, provider: network_ type, provider: physical_ network, provider: segmentation_ id and router:external. network( resource) : Same as get_network().
1) create_network(): resource._attrs only contains the values provided via attrs parameter (i.e. name) and dir(resource) does not contain attributes for port_security_
2) networks(): resource._attrs and dir(resource) are complete
3) get_network(): dir(resource) does not contain attributes for port_security_
4) find_network(): Same as networks().
5) update_network(id): Same as create_network().
6) update_
Some of the resource methods appear to be missing code to update attrs based on the response data.