When I use the follwing CURL command (via the HP VAN SDN Controller 2.0) to introduce a new Flow inside a switch HP 3800-24G-2SFP:
curl --header 'X-Auth-Token: 30621afaccdd4c74b7573abe15682dd0' --header "Accept: application/json" --header "Content-type: application/json" --fail -ksSfL -X POST -d '{"flow":{"priority":100,"table_id":100,"idle_timeout":60,"match":[{"in_port":15},{"eth_dst":"ff:ff:ff:ff:ff:ff"},{"eth_src":"00:23:32:cf:89:bc"},{"eth_type":"ipv4"}],"instructions":[{"apply_actions":[{"output": 5}]}]}}' --url https://130.223.16.128:8443/sdn/v2.0/of/datapaths/00:14:f0:92:1c:21:fa:c0/flows
It workss. The flow is correctly introduced into the switch.
If I use the same CURL (I've just changed the vpid) for a switch HP 3500-24G:
curl --header 'X-Auth-Token: 30621afaccdd4c74b7573abe15682dd0' --header "Accept: application/json" --header "Content-type: application/json" --fail -ksSfL -X POST -d '{"flow":{"priority":100,"table_id":100,"idle_timeout":60,"match":[{"in_port":15},{"eth_dst":"ff:ff:ff:ff:ff:ff"},{"eth_src":"00:23:32:cf:89:bc"},{"eth_type":"ipv4"}],"instructions":[{"apply_actions":[{"output": 5}]}]}}' --url https://130.223.16.128:8443/sdn/v2.0/of/datapaths/00:14:3c:4a:92:fa:cd:80/flows
curl: (22) The requested URL returned error: 400 Bad Request
In this case I have the previous error.
I
don't understand why my 3800 and my 3500 have to different behaviour with the same CURL.
Both switch have the same firmware: 15.14
Here is the configuration file fore 3500:
snmp-server community "public" unrestricted
openflow
controller-id 1 ip 130.223.23.100 controller-interface vlan 23
instance "unil"
listen-port
member vlan 20
controller-id 1
version 1.3
enable
exit
enable
exit
vlan 1
name "DEFAULT_VLAN"
no untagged 3,5-24
untagged 1-2,4
ip address dhcp-bootp
exit
vlan 20
name "sdn-client"
untagged 5-23
no ip address
exit
vlan 23
name "sdn-cnt"
untagged 24
tagged 1-2
ip address 130.223.23.104 255.255.255.0
exit
Here ie the configuration file for 3800:
Startup configuration: 27
; J9575A Configuration Editor; Created on release #KA.15.14.0003
; Ver #05:09.ff.ff.3f.ef:dc
hostname "hpmax1"
module 1 type j9575x
sntp server priority 1 130.223.8.20 4
telnet-server listen oobm
time timezone 1
snmp-server community "public" unrestricted
openflow
controller-id 1 ip 130.223.23.100 controller-interface vlan 23
instance "unil"
listen-port
member vlan 20
controller-id 1
software-flow-table 4
version 1.3
enable
exit
enable
exit
oobm
ip address 130.223.38.8 255.255.252.0
ip default-gateway 130.223.36.1
exit
vlan 1
name "DEFAULT_VLAN"
no untagged 2,5-24
untagged 1,3-4,25-26
ip address dhcp-bootp
exit
vlan 20
name "sdn-client"
untagged 5-23
no ip address
exit
vlan 23
name "sdn-cnt"
untagged 24
tagged 1-2
ip address 130.223.23.101 255.255.255.0
exit
Did someone had the same kind of bahaviour ?
Regards,
Serge