'Get the IP version 4 and 6 address scope mark for the port
:param port: A port dict from the RPC call
:returns: A dict mapping the address family to the address scope mark'

def get_port_address_scope_mark(self, port):

    port_scopes = port.get('address_scopes', {})
    address_scope_mark_masks = ((int(k), self.get_address_scope_mark_mask(v)) for (k, v) in port_scopes.items())
    return collections.defaultdict(self.get_address_scope_mark_mask, address_scope_mark_masks)
