Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add examples using network_state variable #728

Merged

Conversation

liangwen12year
Copy link
Collaborator

Enhancement:

Reason:

Result:

Issue Tracker Tickets (Jira or BZ if any):

Copy link

codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.29%. Comparing base (89d7148) to head (398678d).
Report is 7 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #728       +/-   ##
===========================================
+ Coverage   20.40%   43.29%   +22.88%     
===========================================
  Files          10       12        +2     
  Lines        1485     3109     +1624     
  Branches      436        0      -436     
===========================================
+ Hits          303     1346     +1043     
- Misses       1181     1763      +582     
+ Partials        1        0        -1     
Flag Coverage Δ
sanity ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@liangwen12year liangwen12year changed the title Add examples using network_state variable docs: Add examples using network_state variable Aug 22, 2024
@liangwen12year
Copy link
Collaborator Author

@tyll , configure vrf interface is not supported in network_connections, besides that, I also added other examples.

@liangwen12year
Copy link
Collaborator Author

    - name: Configure the vrf interface test-vrf0 with vrf port eth1 and vrf route table 101
      vars:
        network_state:
          interfaces:
            - name: test-vrf0
              type: vrf
              state: up
              vrf:
                port:
                  - eth1
                route-table-id: 101
      ansible.builtin.include_role:
        name: linux-system-roles.network

@eliaswimmer, this is the example of configuring vrf interface using the network_state variable.

examples/network_state_example.yml Show resolved Hide resolved
@liangwen12year liangwen12year merged commit 7dca20d into linux-system-roles:main Aug 22, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants