i use opennebula to create vm,the network chose openvswitch,but  when i create 
a new vm,i found that the port link_speed is already set only 10Mbps,
so i check the support , it can use 100Mbps,but i cant modify the 
link_speed,does anyone can help me to modify the port link_speed value,
it seems that the cmd "ovs-vsctl set interface vnet0 link_speed=100000000 " 
does not work ,here is the detail:


 1012  history | grep ovs
[[email protected] ~]#ovs-ofctl show vbr1
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000d4ae52908fc1
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST 
SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
 1(em2): addr:d4:ae:52:90:8f:c1
     config:     0
     state:      0
     current:    1GB-FD COPPER AUTO_NEG
     advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD AUTO_NEG
     supported:  10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD COPPER AUTO_NEG
     speed: 1000 Mbps now, 1000 Mbps max
 8(vnet1): addr:fe:00:0a:64:09:0d
     config:     0
     state:      0
     current:    10MB-FD COPPER
     speed: 10 Mbps now, 0 Mbps max
 9(vnet0): addr:fe:00:0a:64:09:0c
     config:     0
     state:      0
     current:    10MB-FD COPPER
     speed: 10 Mbps now, 0 Mbps max
 LOCAL(vbr1): addr:d4:ae:52:90:8f:c1
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0


and conf.db detail here:




[[email protected] openvswitch]#ovs-vsctl set interface vnet0 
link_speed=100000000
[[email protected] openvswitch]#tail -n 5 conf.db 
{"_date":1400210354944,"Open_vSwitch":{"ee121725-858c-44fe-8ea2-fceca8b09904":{"cur_cfg":97}}}
OVSDB JSON 171 546e50899a2b9d659d4cfcfae40cab5dae1853e9
{"_date":1400210403298,"Open_vSwitch":{"ee121725-858c-44fe-8ea2-fceca8b09904":{"next_cfg":98}},"_comment":"ovs-vsctl:
 ovs-vsctl set interface vnet0 link_speed=100000000"}
OVSDB JSON 95 a5226468af4e1d62ee46967538f153d5c3f87471
{"_date":1400210403305,"Open_vSwitch":{"ee121725-858c-44fe-8ea2-fceca8b09904":{"cur_cfg":98}}}
[[email protected] openvswitch]#ovs-vsctl list interface vnet0
_uuid               : 0297e8f9-a787-4cf7-8466-1b354b601ddd
admin_state         : up
bfd                 : {}
bfd_status          : {}
cfm_fault           : []
cfm_fault_status    : []
cfm_flap_count      : []
cfm_health          : []
cfm_mpid            : []
cfm_remote_mpids    : []
cfm_remote_opstate  : []
duplex              : full
external_ids        : {attached-mac="02:00:0A:64:09:0C", 
iface-id="c86120b9-c8e2-6dbd-f836-de0e648c447a", iface-status=active, 
vm-id="3f2fd527-daa8-6e39-bc3d-899b0f502a6d"}
ifindex             : 20
ingress_policing_burst: 0
ingress_policing_rate: 0
lacp_current        : []
link_resets         : 1
link_speed          : 10000000
link_state          : up
mac                 : []
mac_in_use          : "fe:00:0a:64:09:0c"
mtu                 : 1500
name                : "vnet0"
ofport              : 9
ofport_request      : []
options             : {}
other_config        : {}
statistics          : {collisions=0, rx_bytes=300, rx_crc_err=0, rx_dropped=0, 
rx_errors=0, rx_frame_err=0, rx_over_err=0, rx_packets=5, tx_bytes=6092, 
tx_dropped=0, tx_errors=0, tx_packets=66}
status              : {driver_name=tun, driver_version="1.6", 
firmware_version="N/A"}
type                : ""

_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to