Skip to content
New issue

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

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

Already on GitHub? # 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 force-pushed the network_state_examples branch from 3a6a62e to 835ca47 Compare August 22, 2024 03:26
@liangwen12year liangwen12year changed the title Add examples using network_state variable docs: Add examples using network_state variable Aug 22, 2024
@liangwen12year liangwen12year requested review from tyll and richm August 22, 2024 03:27
@liangwen12year liangwen12year force-pushed the network_state_examples branch from 835ca47 to fd69843 Compare August 22, 2024 03:31
@liangwen12year
Copy link
Collaborator Author

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

@liangwen12year liangwen12year force-pushed the network_state_examples branch from fd69843 to 371b189 Compare August 22, 2024 03:46
@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.

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
@liangwen12year liangwen12year force-pushed the network_state_examples branch from 371b189 to 398678d Compare August 22, 2024 14:33
@liangwen12year liangwen12year merged commit 7dca20d into linux-system-roles:main Aug 22, 2024
24 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants