<div dir="ltr">I just comment some of floodlight codes and VMs can ping the gateway.<div><br></div><div style>But I do not know why the gateway port and link is down, it is up in namespace view:</div><div style><br></div><div style>

<div> root@controller:/usr/src/eclipse# ip netns exec qrouter-7bde1209-e8ed-4ae6-a627-efaa148c743c ip link<br>14: qr-8af2e01f-bb: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN <br>    link/ether fa:16:3e:f7:3d:5e brd ff:ff:ff:ff:ff:ff</div>

<div><br>root@controller:/usr/src/eclipse# ip netns exec qrouter-7bde1209-e8ed-4ae6-a627-efaa148c743c ip addr<br>14: qr-8af2e01f-bb: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN <br>    link/ether fa:16:3e:f7:3d:5e brd ff:ff:ff:ff:ff:ff<br>

    inet <a href="http://100.0.0.1/24">100.0.0.1/24</a> brd 100.0.0.255 scope global qr-8af2e01f-bb<br>    inet6 fe80::f816:3eff:fef7:3d5e/64 scope link <br>       valid_lft forever preferred_lft forever </div></div></div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 7, 2013 at 5:01 PM, Liu Wenmao <span dir="ltr"><<a href="mailto:marvelliu@gmail.com" target="_blank">marvelliu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">hi<div><br></div><div>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?</div>


<div><br></div><div><div>root@controller:~# ovs-ofctl show br-int</div><div>OFPT_FEATURES_REPLY (xid=0x1): ver:0x1, dpid:0000e2ed9e9b6942</div><div>n_tables:255, n_buffers:256</div><div>features: capabilities:0xc7, actions:0xfff</div>


<div> 1(qr-c5496165-c7): addr:5e:67:22:5b:d5:0e</div><div>     config:     PORT_DOWN</div><div>     state:      LINK_DOWN</div><div><b> 2(qr-8af2e01f-bb): addr:e4:00:00:00:00:00<--------------------this is the gateway.....</b></div>


<div><b>     config:     PORT_DOWN</b></div><div><b>     state:      LINK_DOWN</b></div><div> 3(qr-48c69382-4f): addr:22:64:6f:3a:9f:cd</div><div>     config:     PORT_DOWN</div><div>     state:      LINK_DOWN</div><div>

 4(patch-tun): addr:8e:90:4c:aa:d2:06</div>
<div>     config:     0</div><div>     state:      0</div><div> 5(tap5b5891ac-94): addr:6e:52:f7:c1:ef:f4</div><div>     config:     PORT_DOWN</div><div>     state:      LINK_DOWN</div><div> 6(tap09a002af-66): addr:c6:cb:01:60:3f:8a</div>


<div>     config:     PORT_DOWN</div><div>     state:      LINK_DOWN</div><div> 7(tap160480aa-84): addr:96:43:cc:05:71:d5</div><div>     config:     PORT_DOWN</div><div>     state:      LINK_DOWN</div><div> 8(tapf6040ba0-b5): addr:e4:00:00:00:00:00</div>


<div>     config:     PORT_DOWN</div><div>     state:      LINK_DOWN</div><div> 9(tap0ded1c0f-df): addr:12:c8:b3:5c:fb:6a</div><div>     config:     PORT_DOWN</div><div>     state:      LINK_DOWN</div><div> 10(tapaebb6140-31): addr:e4:00:00:00:00:00</div>


<div>     config:     PORT_DOWN</div><div>     state:      LINK_DOWN</div><div> 11(tapddc3ce63-2b): addr:e4:00:00:00:00:00</div><div>     config:     PORT_DOWN</div><div>     state:      LINK_DOWN</div><div> 12(qr-9b9a3229-19): addr:e4:00:00:00:00:00</div>


<div>     config:     PORT_DOWN</div><div>     state:      LINK_DOWN</div><div> LOCAL(br-int): addr:e2:ed:9e:9b:69:42</div><div>     config:     PORT_DOWN</div><div>     state:      LINK_DOWN</div><div>OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0</div>


</div><div><br></div><div><br></div><div>floodlight codes:</div><div><div>if (entity.hasSwitchPort() &&</div><div>                        !topology.isAttachmentPointPort(entity.getSwitchDPID(),</div>
<div>                                                 entity.getSwitchPort().shortValue())) {</div><div>                    if (logger.isDebugEnabled()) {</div><div>                        logger.debug("Not learning new device on internal"</div>


<div>                                     + " link: {}", entity);</div><div>                    }</div><div><br></div></div><div><div>public boolean portEnabled(OFPhysicalPort port) {</div><div><span style="white-space:pre-wrap"> </span>        if (port == null)</div>


<div><span style="white-space:pre-wrap">  </span>            return false;</div><div><span style="white-space:pre-wrap">        </span>        if ((port.getConfig() & OFPortConfig.OFPPC_PORT_DOWN.getValue()) > 0)</div>
<div><span style="white-space:pre-wrap">  </span>            return false;</div></div></div>
</blockquote></div><br></div>