@@ -576,7 +576,7 @@ func (f5 *f5LTM) ensureVxLANTunnel() error {
576
576
AddressSource : "from-user" ,
577
577
Floating : "disabled" ,
578
578
InheritedTrafficGroup : "false" ,
579
- TrafficGroup : path .Join (f5 . partitionPath , "traffic-group-local-only" ),
579
+ TrafficGroup : path .Join ("/Common" , "traffic-group-local-only" ), // Traffic group is global
580
580
Unit : 0 ,
581
581
Vlan : path .Join (f5 .partitionPath , F5VxLANTunnelName ),
582
582
AllowService : "all" ,
@@ -615,11 +615,13 @@ func (f5 *f5LTM) ensurePolicyExists(policyName string) error {
615
615
616
616
policiesUrl := fmt .Sprintf ("https://%s/mgmt/tm/ltm/policy" , f5 .host )
617
617
618
+ policyPath := path .Join (f5 .partitionPath , policyName )
619
+
618
620
if f5 .setupOSDNVxLAN {
619
621
// if vxlan needs to be setup, it will only happen
620
622
// with ver12, for which we need to use a different payload
621
623
policyPayload := f5Ver12Policy {
622
- Name : policyName ,
624
+ Name : policyPath ,
623
625
TmPartition : f5 .partitionPath ,
624
626
Controls : []string {"forwarding" },
625
627
Requires : []string {"http" },
@@ -629,7 +631,7 @@ func (f5 *f5LTM) ensurePolicyExists(policyName string) error {
629
631
err = f5 .post (policiesUrl , policyPayload , nil )
630
632
} else {
631
633
policyPayload := f5Policy {
632
- Name : policyName ,
634
+ Name : policyPath ,
633
635
Partition : f5 .partitionPath ,
634
636
Controls : []string {"forwarding" },
635
637
Requires : []string {"http" },
@@ -698,7 +700,7 @@ func (f5 *f5LTM) ensureVserverHasPolicy(vserverName, policyName string) error {
698
700
glog .V (4 ).Infof ("Adding policy %s to vserver %s..." , policyName , vserverName )
699
701
700
702
vserverPoliciesPayload := f5VserverPolicy {
701
- Name : policyName ,
703
+ Name : policyPath ,
702
704
Partition : f5 .partitionPath ,
703
705
}
704
706
0 commit comments