Coder Social home page Coder Social logo

Comments (7)

xinyuezhao avatar xinyuezhao commented on May 31, 2024 1

@manofcolombia @aj-cruz

The module 'aci_access_port_to_interface_policy_leaf_profile' will not be deprecated. Only those attributes related to port blocks will be deprecated and we recommend using module 'aci_access_port_block_to_access_port' to manage port blocks.

from ansible-aci.

aj-cruz avatar aj-cruz commented on May 31, 2024

@manofcolombia Have you tried using aci_access_port_to_interface_policy_leaf_profile?
You can do everything with that one resource, create the port selector, associate port blocks and policy groups, and associate it to the leaf profile.

from ansible-aci.

manofcolombia avatar manofcolombia commented on May 31, 2024

@manofcolombia Have you tried using aci_access_port_to_interface_policy_leaf_profile?
You can do everything with that one resource, create the port selector, associate port blocks and policy groups, and associate it to the leaf profile.

That module does work for the most part. Originally, I completely skipped over that module because it seemed like it is being deprecated?
This is in the module doc.
Starting with Ansible 2.8 we recommend using M(aci_access_port_block_to_access_port) instead

Also, when associating a policy group at the same time, I get a failed relationship form fault in the port selector. The gui shows the policy group set to the full tDN instead of just the named object. Setting it manually to the named object resolves the fault.

ACI: 4.2.4I

Screenshot from 2020-07-12 11-54-49
Screenshot from 2020-07-12 11-58-03

from ansible-aci.

aj-cruz avatar aj-cruz commented on May 31, 2024

@manofcolombia Hmm, I don't see that recommendation anywhere here: https://docs.ansible.com/ansible/latest/modules/aci_access_port_to_interface_policy_leaf_profile_module.html#aci-access-port-to-interface-policy-leaf-profile-module

However, I never noticed it before but I also have a failed relationship with one of my policy groups.
My external vPC policy group failed the relationship, but all the others are fine.
Possibly because access_port_selector is only for access policy groups which I guess makes sense given the name.

from ansible-aci.

manofcolombia avatar manofcolombia commented on May 31, 2024

@aj-cruz I found that documented in the documentation of the actual module. https://github.com/CiscoDevNet/ansible-aci/blob/master/plugins/modules/aci_access_port_to_interface_policy_leaf_profile.py

The first one I saw was on line 40 but it repeats most of the way thru the documentation section.

Ultimately, I did get it to work with that module...I forgot interface_type: vpc so it was defaulting to looking for the port group under accportgrp instead of accbundle.

I'm still curious why/when/if the module will be deprecated.

from ansible-aci.

lhercot avatar lhercot commented on May 31, 2024

@aj-cruz and @manofcolombia, any suggestion on what we can improve to avoid the issue you had?

from ansible-aci.

manofcolombia avatar manofcolombia commented on May 31, 2024

@aj-cruz and @manofcolombia, any suggestion on what we can improve to avoid the issue you had?

The original issue I created stemmed from thinking that aci_access_port_block_to_access_port module would create the child objects if they don't exist. This assumption was incorrect, but I could see a case for both creating and not creating child objects.

I think what would be most helpful, in the long run, is taking the documentation that is written in the module and expanding upon it in the wiki of the github repo. This is mainly for readability, note things pertaining to the module, and the life cycle of the module.

However, I did see that updated documentation in the module does seem to update the docs on the docs.ansible.com. This might be sufficient, but these notes do not appear there.

This is based on the perspective of trying to get another ACI admin who is not as familiar with python or ansible, but sees the value of interacting with ACI via ansible. Their expectation is a readable doc and no "gotcha" notes that they'd have to go looking into the module itself (or asking me) to find out that xyz needs to be created prior to using xyz module.

from ansible-aci.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.