{"action":"created","issue":{"url":"https://api.github.com/repos/CumulusNetworks/ifupdown2/issues/58","repository_url":"https://api.github.com/repos/CumulusNetworks/ifupdown2","labels_url":"https://api.github.com/repos/CumulusNetworks/ifupdown2/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/CumulusNetworks/ifupdown2/issues/58/comments","events_url":"https://api.github.com/repos/CumulusNetworks/ifupdown2/issues/58/events","html_url":"https://github.com/CumulusNetworks/ifupdown2/issues/58","id":332824860,"node_id":"MDU6SXNzdWUzMzI4MjQ4NjA=","number":58,"title":"address can't be setup on a vlan aware bridge","user":{"login":"aderumier","id":1552243,"node_id":"MDQ6VXNlcjE1NTIyNDM=","avatar_url":"https://avatars2.githubusercontent.com/u/1552243?v=4","gravatar_id":"","url":"https://api.github.com/users/aderumier","html_url":"https://github.com/aderumier","followers_url":"https://api.github.com/users/aderumier/followers","following_url":"https://api.github.com/users/aderumier/following{/other_user}","gists_url":"https://api.github.com/users/aderumier/gists{/gist_id}","starred_url":"https://api.github.com/users/aderumier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aderumier/subscriptions","organizations_url":"https://api.github.com/users/aderumier/orgs","repos_url":"https://api.github.com/users/aderumier/repos","events_url":"https://api.github.com/users/aderumier/events{/privacy}","received_events_url":"https://api.github.com/users/aderumier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-06-15T15:44:50Z","updated_at":"2018-06-19T07:08:59Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nCurrently it's not possible to set an address on a bridge with vlan aware\r\n\r\nutils.py\r\n\r\n````\r\n    def is_addr_ip_allowed_on(cls, ifaceobj, syntax_check=False):\r\n        msg = ('%s: ignoring ip address. Assigning an IP '\r\n               'address is not allowed on' % ifaceobj.name)\r\n        if (ifaceobj.role & ifaceRole.SLAVE\r\n                and not (ifaceobj.link_privflags & ifaceLinkPrivFlags.VRF_SLAVE)):\r\n            up = None\r\n            if ifaceobj.upperifaces:\r\n                up = ifaceobj.upperifaces[0]\r\n            msg = ('%s enslaved interfaces. %s'\r\n                   % (msg, ('%s is enslaved to %s'\r\n                            % (ifaceobj.name, up)) if up else '')).strip()\r\n            if syntax_check:\r\n                cls.logger.warning(msg)\r\n            else:\r\n                cls.logger.info(msg)\r\n            return False\r\n        elif (ifaceobj.link_kind & ifaceLinkKind.BRIDGE\r\n                and ifaceobj.link_privflags & ifaceLinkPrivFlags.BRIDGE_VLAN_AWARE):\r\n            msg = '%s bridge vlan aware interfaces'\r\n            if syntax_check:\r\n                cls.logger.warning(msg)\r\n            else:\r\n                cls.logger.info(msg)\r\n            return False\r\n        return True\r\n````\r\n\r\nTechnically, it's possible to add an ip to a vlan aware bridge, in this case I think it's going to use the default PVID.\r\n\r\nany reason to forbid this ?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CumulusNetworks/ifupdown2/issues/comments/398297361","html_url":"https://github.com/CumulusNetworks/ifupdown2/issues/58#issuecomment-398297361","issue_url":"https://api.github.com/repos/CumulusNetworks/ifupdown2/issues/58","id":398297361,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODI5NzM2MQ==","user":{"login":"aderumier","id":1552243,"node_id":"MDQ6VXNlcjE1NTIyNDM=","avatar_url":"https://avatars2.githubusercontent.com/u/1552243?v=4","gravatar_id":"","url":"https://api.github.com/users/aderumier","html_url":"https://github.com/aderumier","followers_url":"https://api.github.com/users/aderumier/followers","following_url":"https://api.github.com/users/aderumier/following{/other_user}","gists_url":"https://api.github.com/users/aderumier/gists{/gist_id}","starred_url":"https://api.github.com/users/aderumier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aderumier/subscriptions","organizations_url":"https://api.github.com/users/aderumier/orgs","repos_url":"https://api.github.com/users/aderumier/repos","events_url":"https://api.github.com/users/aderumier/events{/privacy}","received_events_url":"https://api.github.com/users/aderumier/received_events","type":"User","site_admin":false},"created_at":"2018-06-19T07:08:59Z","updated_at":"2018-06-19T07:08:59Z","author_association":"NONE","body":"Maybe add an option in ifupdown2.conf, \r\nlike:\r\n\r\nvlan_aware_bridge_address_support = 1\r\n?\r\n\r\nI can send a patch if needed"}}
{"actor":{"display_login":"aderumier"}}