Skip to content

Commit

Permalink
[ignore_change] Included PIM prefix for service functions
Browse files Browse the repository at this point in the history
  • Loading branch information
shrsr authored and lhercot committed Jul 13, 2023
1 parent 7bf4a74 commit f416c83
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions client/pimJPInbFilterPol_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/ciscoecosystem/aci-go-client/v2/models"
)

func (sm *ServiceManager) CreateJPInboundFilterPolicy(pim_interface_policy string, tenant string, description string, pimJPInbFilterPolAttr models.PIMJPInboundFilterPolicyAttributes) (*models.PIMJPInboundFilterPolicy, error) {
func (sm *ServiceManager) CreatePIMJPInboundFilterPolicy(pim_interface_policy string, tenant string, description string, pimJPInbFilterPolAttr models.PIMJPInboundFilterPolicyAttributes) (*models.PIMJPInboundFilterPolicy, error) {

parentDn := fmt.Sprintf(models.ParentDnPimJPInbFilterPol, tenant, pim_interface_policy)
pimJPInbFilterPol := models.NewPIMJPInboundFilterPolicy(parentDn, description, pimJPInbFilterPolAttr)
Expand All @@ -16,7 +16,7 @@ func (sm *ServiceManager) CreateJPInboundFilterPolicy(pim_interface_policy strin
return pimJPInbFilterPol, err
}

func (sm *ServiceManager) ReadJPInboundFilterPolicy(pim_interface_policy string, tenant string) (*models.PIMJPInboundFilterPolicy, error) {
func (sm *ServiceManager) ReadPIMJPInboundFilterPolicy(pim_interface_policy string, tenant string) (*models.PIMJPInboundFilterPolicy, error) {

parentDn := fmt.Sprintf(models.ParentDnPimJPInbFilterPol, tenant, pim_interface_policy)
dn := fmt.Sprintf("%s/%s", parentDn, models.RnPimJPInbFilterPol)
Expand All @@ -29,15 +29,15 @@ func (sm *ServiceManager) ReadJPInboundFilterPolicy(pim_interface_policy string,
return pimJPInbFilterPol, nil
}

func (sm *ServiceManager) DeleteJPInboundFilterPolicy(pim_interface_policy string, tenant string) error {
func (sm *ServiceManager) DeletePIMJPInboundFilterPolicy(pim_interface_policy string, tenant string) error {

parentDn := fmt.Sprintf(models.ParentDnPimJPInbFilterPol, tenant, pim_interface_policy)
dn := fmt.Sprintf("%s/%s", parentDn, models.RnPimJPInbFilterPol)

return sm.DeleteByDn(dn, models.PimJPInbFilterPolClassName)
}

func (sm *ServiceManager) UpdateJPInboundFilterPolicy(pim_interface_policy string, tenant string, description string, pimJPInbFilterPolAttr models.PIMJPInboundFilterPolicyAttributes) (*models.PIMJPInboundFilterPolicy, error) {
func (sm *ServiceManager) UpdatePIMJPInboundFilterPolicy(pim_interface_policy string, tenant string, description string, pimJPInbFilterPolAttr models.PIMJPInboundFilterPolicyAttributes) (*models.PIMJPInboundFilterPolicy, error) {

parentDn := fmt.Sprintf(models.ParentDnPimJPInbFilterPol, tenant, pim_interface_policy)
pimJPInbFilterPol := models.NewPIMJPInboundFilterPolicy(parentDn, description, pimJPInbFilterPolAttr)
Expand All @@ -47,7 +47,7 @@ func (sm *ServiceManager) UpdateJPInboundFilterPolicy(pim_interface_policy strin
return pimJPInbFilterPol, err
}

func (sm *ServiceManager) ListJPInboundFilterPolicy(pim_interface_policy string, tenant string) ([]*models.PIMJPInboundFilterPolicy, error) {
func (sm *ServiceManager) ListPIMJPInboundFilterPolicy(pim_interface_policy string, tenant string) ([]*models.PIMJPInboundFilterPolicy, error) {

parentDn := fmt.Sprintf(models.ParentDnPimJPInbFilterPol, tenant, pim_interface_policy)
dnUrl := fmt.Sprintf("%s/%s/%s.json", models.BaseurlStr, parentDn, models.PimJPInbFilterPolClassName)
Expand Down
10 changes: 5 additions & 5 deletions client/pimJPOutbFilterPol_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/ciscoecosystem/aci-go-client/v2/models"
)

func (sm *ServiceManager) CreateJPOutboundFilterPolicy(pim_interface_policy string, tenant string, description string, pimJPOutbFilterPolAttr models.PIMJPOutboundFilterPolicyAttributes) (*models.PIMJPOutboundFilterPolicy, error) {
func (sm *ServiceManager) CreatePIMJPOutboundFilterPolicy(pim_interface_policy string, tenant string, description string, pimJPOutbFilterPolAttr models.PIMJPOutboundFilterPolicyAttributes) (*models.PIMJPOutboundFilterPolicy, error) {

parentDn := fmt.Sprintf(models.ParentDnPimJPOutbFilterPol, tenant, pim_interface_policy)
pimJPOutbFilterPol := models.NewPIMJPOutboundFilterPolicy(parentDn, description, pimJPOutbFilterPolAttr)
Expand All @@ -16,7 +16,7 @@ func (sm *ServiceManager) CreateJPOutboundFilterPolicy(pim_interface_policy stri
return pimJPOutbFilterPol, err
}

func (sm *ServiceManager) ReadJPOutboundFilterPolicy(pim_interface_policy string, tenant string) (*models.PIMJPOutboundFilterPolicy, error) {
func (sm *ServiceManager) ReadPIMJPOutboundFilterPolicy(pim_interface_policy string, tenant string) (*models.PIMJPOutboundFilterPolicy, error) {

parentDn := fmt.Sprintf(models.ParentDnPimJPOutbFilterPol, tenant, pim_interface_policy)
dn := fmt.Sprintf("%s/%s", parentDn, models.RnPimJPOutbFilterPol)
Expand All @@ -29,15 +29,15 @@ func (sm *ServiceManager) ReadJPOutboundFilterPolicy(pim_interface_policy string
return pimJPOutbFilterPol, nil
}

func (sm *ServiceManager) DeleteJPOutboundFilterPolicy(pim_interface_policy string, tenant string) error {
func (sm *ServiceManager) DeletePIMJPOutboundFilterPolicy(pim_interface_policy string, tenant string) error {

parentDn := fmt.Sprintf(models.ParentDnPimJPOutbFilterPol, tenant, pim_interface_policy)
dn := fmt.Sprintf("%s/%s", parentDn, models.RnPimJPOutbFilterPol)

return sm.DeleteByDn(dn, models.PimJPOutbFilterPolClassName)
}

func (sm *ServiceManager) UpdateJPOutboundFilterPolicy(pim_interface_policy string, tenant string, description string, pimJPOutbFilterPolAttr models.PIMJPOutboundFilterPolicyAttributes) (*models.PIMJPOutboundFilterPolicy, error) {
func (sm *ServiceManager) UpdatePIMJPOutboundFilterPolicy(pim_interface_policy string, tenant string, description string, pimJPOutbFilterPolAttr models.PIMJPOutboundFilterPolicyAttributes) (*models.PIMJPOutboundFilterPolicy, error) {

parentDn := fmt.Sprintf(models.ParentDnPimJPOutbFilterPol, tenant, pim_interface_policy)
pimJPOutbFilterPol := models.NewPIMJPOutboundFilterPolicy(parentDn, description, pimJPOutbFilterPolAttr)
Expand All @@ -47,7 +47,7 @@ func (sm *ServiceManager) UpdateJPOutboundFilterPolicy(pim_interface_policy stri
return pimJPOutbFilterPol, err
}

func (sm *ServiceManager) ListJPOutboundFilterPolicy(pim_interface_policy string, tenant string) ([]*models.PIMJPOutboundFilterPolicy, error) {
func (sm *ServiceManager) ListPIMJPOutboundFilterPolicy(pim_interface_policy string, tenant string) ([]*models.PIMJPOutboundFilterPolicy, error) {

parentDn := fmt.Sprintf(models.ParentDnPimJPOutbFilterPol, tenant, pim_interface_policy)
dnUrl := fmt.Sprintf("%s/%s/%s.json", models.BaseurlStr, parentDn, models.PimJPOutbFilterPolClassName)
Expand Down
10 changes: 5 additions & 5 deletions client/pimNbrFilterPol_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/ciscoecosystem/aci-go-client/v2/models"
)

func (sm *ServiceManager) CreateNeighborFiterPolicy(pim_interface_policy string, tenant string, description string, pimNbrFilterPolAttr models.PIMNeighborFiterPolicyAttributes) (*models.PIMNeighborFiterPolicy, error) {
func (sm *ServiceManager) CreatePIMNeighborFiterPolicy(pim_interface_policy string, tenant string, description string, pimNbrFilterPolAttr models.PIMNeighborFiterPolicyAttributes) (*models.PIMNeighborFiterPolicy, error) {

parentDn := fmt.Sprintf(models.ParentDnPimNbrFilterPol, tenant, pim_interface_policy)
pimNbrFilterPol := models.NewPIMNeighborFiterPolicy(parentDn, description, pimNbrFilterPolAttr)
Expand All @@ -16,7 +16,7 @@ func (sm *ServiceManager) CreateNeighborFiterPolicy(pim_interface_policy string,
return pimNbrFilterPol, err
}

func (sm *ServiceManager) ReadNeighborFiterPolicy(pim_interface_policy string, tenant string) (*models.PIMNeighborFiterPolicy, error) {
func (sm *ServiceManager) ReadPIMNeighborFiterPolicy(pim_interface_policy string, tenant string) (*models.PIMNeighborFiterPolicy, error) {

parentDn := fmt.Sprintf(models.ParentDnPimNbrFilterPol, tenant, pim_interface_policy)
dn := fmt.Sprintf("%s/%s", parentDn, models.RnPimNbrFilterPol)
Expand All @@ -29,15 +29,15 @@ func (sm *ServiceManager) ReadNeighborFiterPolicy(pim_interface_policy string, t
return pimNbrFilterPol, nil
}

func (sm *ServiceManager) DeleteNeighborFiterPolicy(pim_interface_policy string, tenant string) error {
func (sm *ServiceManager) DeletePIMNeighborFiterPolicy(pim_interface_policy string, tenant string) error {

parentDn := fmt.Sprintf(models.ParentDnPimNbrFilterPol, tenant, pim_interface_policy)
dn := fmt.Sprintf("%s/%s", parentDn, models.RnPimNbrFilterPol)

return sm.DeleteByDn(dn, models.PimNbrFilterPolClassName)
}

func (sm *ServiceManager) UpdateNeighborFiterPolicy(pim_interface_policy string, tenant string, description string, pimNbrFilterPolAttr models.PIMNeighborFiterPolicyAttributes) (*models.PIMNeighborFiterPolicy, error) {
func (sm *ServiceManager) UpdatePIMNeighborFiterPolicy(pim_interface_policy string, tenant string, description string, pimNbrFilterPolAttr models.PIMNeighborFiterPolicyAttributes) (*models.PIMNeighborFiterPolicy, error) {

parentDn := fmt.Sprintf(models.ParentDnPimNbrFilterPol, tenant, pim_interface_policy)
pimNbrFilterPol := models.NewPIMNeighborFiterPolicy(parentDn, description, pimNbrFilterPolAttr)
Expand All @@ -47,7 +47,7 @@ func (sm *ServiceManager) UpdateNeighborFiterPolicy(pim_interface_policy string,
return pimNbrFilterPol, err
}

func (sm *ServiceManager) ListNeighborFiterPolicy(pim_interface_policy string, tenant string) ([]*models.PIMNeighborFiterPolicy, error) {
func (sm *ServiceManager) ListPIMNeighborFiterPolicy(pim_interface_policy string, tenant string) ([]*models.PIMNeighborFiterPolicy, error) {

parentDn := fmt.Sprintf(models.ParentDnPimNbrFilterPol, tenant, pim_interface_policy)
dnUrl := fmt.Sprintf("%s/%s/%s.json", models.BaseurlStr, parentDn, models.PimNbrFilterPolClassName)
Expand Down

0 comments on commit f416c83

Please sign in to comment.