{"id":448,"date":"2013-06-28T17:31:11","date_gmt":"2013-06-28T09:31:11","guid":{"rendered":"http:\/\/blog.marvelplanet.tk\/?p=448"},"modified":"2013-06-28T17:31:12","modified_gmt":"2013-06-28T09:31:12","slug":"floodlight-ignore-subnet-gateway-due-to-port_down-and-link_down","status":"publish","type":"post","link":"https:\/\/marvelliu.space\/?p=448","title":{"rendered":"floodlight ignore subnet gateway due to PORT_DOWN and LINK_DOWN"},"content":{"rendered":"<p>Liu Wenmao <marvelliu@gmail.com><br \/>\nMay 7<br \/>\nto openstack<br \/>\nhi<\/p>\n<p>I use quantum grizzly with namespace and floodlight, but VMs can not ping its gateway. It seems that floodlight ignore devices whose status is PORT_DOWN or LINK_DOWN, somehow the subnetwork gateway is really PORT_DOWN and LINK_DOWN.. is it normal?or how can I change its status to normal?<\/p>\n<pre>\r\nroot@controller:~# ovs-ofctl show br-int\r\nOFPT_FEATURES_REPLY (xid=0x1): ver:0x1, dpid:0000e2ed9e9b6942\r\nn_tables:255, n_buffers:256\r\nfeatures: capabilities:0xc7, actions:0xfff\r\n 1(qr-c5496165-c7): addr:5e:67:22:5b:d5:0e\r\n     config:     PORT_DOWN\r\n     state:      LINK_DOWN\r\n 2(qr-8af2e01f-bb): addr:e4:00:00:00:00:00<--------------------this is the gateway.....\r\n     config:     PORT_DOWN\r\n     state:      LINK_DOWN\r\n 3(qr-48c69382-4f): addr:22:64:6f:3a:9f:cd\r\n     config:     PORT_DOWN\r\n     state:      LINK_DOWN\r\n 4(patch-tun): addr:8e:90:4c:aa:d2:06\r\n     config:     0\r\n     state:      0\r\n 5(tap5b5891ac-94): addr:6e:52:f7:c1:ef:f4\r\n     config:     PORT_DOWN\r\n     state:      LINK_DOWN\r\n 6(tap09a002af-66): addr:c6:cb:01:60:3f:8a\r\n     config:     PORT_DOWN\r\n     state:      LINK_DOWN\r\n 7(tap160480aa-84): addr:96:43:cc:05:71:d5\r\n     config:     PORT_DOWN\r\n     state:      LINK_DOWN\r\n 8(tapf6040ba0-b5): addr:e4:00:00:00:00:00\r\n     config:     PORT_DOWN\r\n     state:      LINK_DOWN\r\n 9(tap0ded1c0f-df): addr:12:c8:b3:5c:fb:6a\r\n     config:     PORT_DOWN\r\n     state:      LINK_DOWN\r\n 10(tapaebb6140-31): addr:e4:00:00:00:00:00\r\n     config:     PORT_DOWN\r\n     state:      LINK_DOWN\r\n 11(tapddc3ce63-2b): addr:e4:00:00:00:00:00\r\n     config:     PORT_DOWN\r\n     state:      LINK_DOWN\r\n 12(qr-9b9a3229-19): addr:e4:00:00:00:00:00\r\n     config:     PORT_DOWN\r\n     state:      LINK_DOWN\r\n LOCAL(br-int): addr:e2:ed:9e:9b:69:42\r\n     config:     PORT_DOWN\r\n     state:      LINK_DOWN\r\nOFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0\r\n<\/pre>\n<p>floodlight codes:<br \/>\nif (entity.hasSwitchPort() &&<br \/>\n                        !topology.isAttachmentPointPort(entity.getSwitchDPID(),<br \/>\n                                                 entity.getSwitchPort().shortValue())) {<br \/>\n                    if (logger.isDebugEnabled()) {<br \/>\n                        logger.debug(\"Not learning new device on internal\"<br \/>\n                                     + \" link: {}\", entity);<br \/>\n                    }<\/p>\n<p>public boolean portEnabled(OFPhysicalPort port) {<br \/>\n       if (port == null)<br \/>\n           return false;<br \/>\n       if ((port.getConfig() & OFPortConfig.OFPPC_PORT_DOWN.getValue()) > 0)<br \/>\n           return false;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Liu Wenmao May 7 to openstack hi I use quantum grizzly with namespace and floodlight, but VMs can not ping its gateway. It seems that floodlight ignore devices whose status is PORT_DOWN or LINK_DOWN, somehow the subnetwork gateway is really PORT_DOWN and LINK_DOWN.. is it normal?or how can I change its status to normal? root@controller:~# &hellip; <a href=\"https:\/\/marvelliu.space\/?p=448\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;floodlight ignore subnet gateway due to PORT_DOWN and LINK_DOWN&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-448","post","type-post","status-publish","format-standard","hentry","category-sdn"],"_links":{"self":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts\/448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=448"}],"version-history":[{"count":1,"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts\/448\/revisions"}],"predecessor-version":[{"id":449,"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts\/448\/revisions\/449"}],"wp:attachment":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}